http://www.perlmonks.org?node_id=166744


in reply to Re: confused
in thread @ARGV / Command Line Arguments

I believe this line:

($input,$output,$length)= shift @ARGV;
should read:
($input,$output,$length)= @ARGV;


Everything went worng, just as foreseen.