2. If the command was invoked as perl options file, the program text is found in the file. 3. Otherwise, the program text is found on STDIN.
This is one step, iirc. The filename is the first non-option argument given on the command line, where "-" is STDIN, and it defaults to "-".
The shebang line is handled by the kernel
perl does its own interpretation too. This is why files with "#!/usr/bin/perl -w" still get warnings, even if called with "perl foo.pl". This is only if it's the first line.
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
In reply to Re: Re:x2 'perl -p' ne 'cat'
by Juerd
in thread 'perl -p' ne 'cat'
by grinder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |