more useful options | |
PerlMonks |
Re^2: split functionby ysth (Canon) |
on Jul 12, 2010 at 17:03 UTC ( [id://849055]=note: print w/replies, xml ) | Need Help?? |
open(DATAIN, "<$ARGV[0]")
should be
open(DATAIN, "< $ARGV[0]\0")
to protect against filenames starting with < or other perversions.
-- A math joke: r = | |csc(θ)|+|sec(θ)|-||csc(θ)|-|sec(θ)|| | Online Fortune Cookie Search Office Space merchandise
In Section
Seekers of Perl Wisdom
|
|