> >Can some one tell me way this does not work. > > > >if (@ARGV[0] = "-q"){print "it worked\n";}
try (@ARGV[0] == "-q") ^^-------- this got me too- the "==" compares values while "=" assignes the right side value to lef side variable- so @ARGV[0] is given the value of "-q" when you run your program- since the assignment is successful- a 'true' value results you print "it worked\n" have fun :) willy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]