in reply to Passing parameters to scripts
The command line arguments arrive in the @ARGV array. so $file=$ARGV[0] will do what you want.
-- Tommy Too stupid to live. Too stubborn to die.