in reply to Re^2: Auto-open ARGV
in thread Auto-open ARGV
You really really don't want <>, because it intends to read a line from the file. You don't want any reading... you want Storable to do that.perl -MStorable=retrieve -e '@ARGV = "-" unless @ARGV; print +(retriev +e $_)->foo for @ARGV' filename
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Auto-open ARGV
by diotalevi (Canon) on Mar 07, 2003 at 17:24 UTC |