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.
In reply to •Re: Re^2: Auto-open ARGV
by merlyn
in thread Auto-open ARGV
by diotalevi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |