I'm going through The Learning Perl book from O'Reilly, and they use this in one of the solutions of an exercise:
push @numbers, split while <>;They use that to read they list of arguments from the command line. however, when I actually run it, I get an error as expected stating that it can't ready the files, with <> treating the arguments as files, not input. I hope this makes sense. I'm wondering how this would be properly written?
In reply to <> to read command line options? by slackcub
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |