Harry Putnam wrote: > This is probably blindingly simple but I'm not understanding why @ARGV > is not reduced to () (no args)? in this example
To Perl, @ARGV is just another array. It has some special features but can be assigned values just like other arrays. You can use it to do tricks, like set a default file list: # Default file list is all text files @ARGV = glob( '*.txt' ) unless @ARGV; # Read the files while( <> ){ chomp; # ... } -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. I like Perl; it's the only language where you can bless your thingy. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/