spickles has asked for the wisdom of the Perl Monks concerning the following question:
And this gives me the error: 'Use of uninitialized value $1 in print'?my $text = "mississippi"; $text =~ m/(i.*s)/; print $1 . "\n";
Please understand that before anyone tells me to go RTFM, I already have, and I wouldn't be asking questions if I didn't need some help. Thanks!my $line = "PID: AIR-LAP1142N-A-K9 , VID: V01, SN: FTX1332SC15"; $line =~ m/AIR-LAP1142N-A-K9/; print $1 . "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: String Match Use of $1 Uninitialized
by jettero (Monsignor) on Dec 16, 2009 at 19:35 UTC | |
|
Re: String Match Use of $1 Uninitialized
by kennethk (Abbot) on Dec 16, 2009 at 19:36 UTC | |
by spickles (Scribe) on Dec 16, 2009 at 19:58 UTC | |
by ikegami (Patriarch) on Dec 16, 2009 at 21:47 UTC |