Perl Monk, Perl Meditation | |
PerlMonks |
<> and @ARGVby chip (Curate) |
on Jul 28, 2000 at 15:23 UTC ( [id://24828]=note: print w/replies, xml ) | Need Help?? |
If the connection between <> and @ARGV
caught you by surprise, I'm afraid you haven't been reading very carefully.
And <> doesn't read from the files in @ARGV when there's nothing on stdin. It's the other way around. It reads from stdin only when @ARGV is empty (or contains "-"). -- Chip Salzenberg, Free-Floating Agent of Chaos
In Section
Meditations
|
|