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
In reply to Re: Need help to convert short c shell script to perl
by grinder
in thread Need help to convert short c shell script to perl
by kobiee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |