in reply to Re: Passing parameters to scriptsin thread 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.