Welcome Guest!
 chicago-pm
 Previous Message All Messages Next Message 
Re: Safe Shell Escapes  Randal L. Schwartz
 Jun 09, 2004 12:26 PDT 

 
 
 
 
 "Andy" == Andy Bach <Andy_-@wiwb.uscourts.gov> writes:

Andy> Now I see down in the examples:
Andy> open(FOO, '-|') || exec 'cat', '-n', $file;

Andy> which is (?) like:
Andy> if ( open(FOO, '-|') ) {
Andy> ....
Andy> } else {
Andy>     exec 'cat', '-n', $file;
Andy> }

Yes, those a pretty much equivalent.

Andy> But that seems to be ... er time travel or missing a loop.

Uh, why?

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<mer-@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
	
 Previous Message All Messages Next Message 
  Check It Out!

  Topica Channels
 Best of Topica
 Art & Design
 Books, Movies & TV
 Developers
 Food & Drink
 Health & Fitness
 Internet
 Music
 News & Information
 Personal Finance
 Personal Technology
 Small Business
 Software
 Sports
 Travel & Leisure
 Women & Family

  Start Your Own List!
Email lists are great for debating issues or publishing your views.
Start a List Today!

© 2001 Topica Inc. TFMB
Concerned about privacy? Topica is TrustE certified.
See our Privacy Policy.