Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Re: perl script inside a shell scriptby chipmunk (Parson) |
on Dec 12, 2000 at 03:17 UTC ( [id://46178]=note: print w/replies, xml ) | Need Help?? |
Very nice! As another way of doing it, using quotes around the here-doc terminator saves you from having to backslash all those special characters.
Because << is a redirection to STDIN, in order to add $i to the command line I also had to add - so that perl would know to read the script from STDIN.
In Section
Seekers of Perl Wisdom
|
|