in reply to Re^2: Auto-open ARGV
in thread Auto-open ARGV

perl -MStorable=retrieve -e '@ARGV = "-" unless @ARGV; print +(retriev +e $_)->foo for @ARGV' filename
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.

-- 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

    Ah! I'd forgotten about '-'. Thanks for reminding me.