Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Can you help me on this please?my $inc = "13 drwxr-xr-x 4 root root 34816 Mar 18 08:17 FI +LE_INPUT_Wrt004)"; if ($inc =~/FILE_INPUT/){ print"Inc is $inc"; } Output I got: Inc is 13 drwxr-xr-x 4 root root 34816 Mar 18 08:17 FILE_I +NPUT_Wat004 Expected output: FILE_INPUT_Wrt004
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help on pattern match
by ikegami (Patriarch) on Mar 18, 2009 at 13:05 UTC | |
by CountZero (Bishop) on Mar 18, 2009 at 13:26 UTC | |
by Anonymous Monk on Mar 18, 2009 at 13:19 UTC | |
|
Re: Help on pattern match
by Corion (Patriarch) on Mar 18, 2009 at 13:09 UTC |