$1 is a special variable. What are you actually trying to do here? What do you want to have print?
[I've copied you, but please respond to the list.] /\/\ark -----Original Message----- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Friday, July 26, 2002 4:20 PM To: [EMAIL PROTECTED] Subject: regex question [ please cc: me as I am on digest and I may miss a reply] I have the following snippet of code: if($line=~/Connect\s/) { print $line; if($1=~/[0-9]/) { print "$1\n"; } } The first if is OK, I get what I need. The second if though I get this when I try to run the script: Use of uninitialized value in pattern match (m//) at ./conn_time.pl line 19 What I am looking to do is find a substring in $line I am using warnings,diagnostics and strict as well. Thanks -- Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]