in reply to Re: Grep Pattern Match
in thread Grep Pattern Match
or@files = grep {/^nc$year.*\.log$/} @files;
Where the $year is the 2 digit number of the year I am in??@files = grep {/^nc.$year.*\.log$/} @files;
perl -e '$cat = "cat"; if ($cat =~ /\143\x61\x74/) { print "Its a cat! +\n"; } else { print "Thats a dog\n"; } print "\n";'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Grep Pattern Match
by BrowserUk (Patriarch) on Dec 27, 2002 at 15:33 UTC | |
by LostS (Friar) on Dec 27, 2002 at 15:45 UTC | |
by BrowserUk (Patriarch) on Dec 27, 2002 at 16:00 UTC | |
by LostS (Friar) on Dec 27, 2002 at 16:18 UTC |