in reply to Need help to convert short c shell script to perl
I need help to convert c shell script to perl.
Oh, quite simple. Just add this one line to the top of your file, and Presto! Instant Perl! :)
sub source{require$_[0]}sub echo{print"$_\n"for@_}BEGIN{/($ARGV[0])/;open I,$0;<I>;eval while<I>}Remember, even if the above line wraps, it should be on one line in your file.
• another intruder with the mooring in the heart of the Perl
|
|---|