in reply to command line options

In perl these show up in the @ARGV array... in your example opt1 would be in $ARGV[0] and opt2 would be in $ARGV[1] there are also packages like the ones in Getopt that can be very useful :)

                - Ant
                - Some of my best work - Fish Dinner