asdfghjkl has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w my $string = "rid"; while (<>) { if (/($string){3}/) { print; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: can any reply out with a better code than this??
by ysth (Canon) on Dec 06, 2007 at 07:27 UTC | |
Re: can any reply out with a better code than this??
by fenLisesi (Priest) on Dec 06, 2007 at 07:44 UTC | |
by asdfghjkl (Initiate) on Dec 06, 2007 at 07:50 UTC | |
by fenLisesi (Priest) on Dec 06, 2007 at 07:53 UTC | |
by asdfghjkl (Initiate) on Dec 06, 2007 at 07:57 UTC | |
by fenLisesi (Priest) on Dec 06, 2007 at 08:06 UTC |