|
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!
|
|
 |
|