gaurav has asked for the wisdom of the Perl Monks concerning the following question:
I am new to perl I want to know how I would get print my result
my $what = ram; /($what){3}/; print $what;
As you have seen above that it should print ramramram but its printing only ram. Please help me out.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: simple regular expression printing
by davido (Cardinal) on Jul 15, 2013 at 04:22 UTC | |
by gaurav (Sexton) on Jul 15, 2013 at 08:08 UTC | |
|
Re: simple regular expression printing
by rjt (Curate) on Jul 15, 2013 at 05:10 UTC | |
|
Re: simple regular expression printing
by Laurent_R (Canon) on Jul 15, 2013 at 06:19 UTC | |
by gaurav (Sexton) on Jul 15, 2013 at 08:10 UTC | |
|
Re: simple regular expression printing
by Anonymous Monk on Jul 15, 2013 at 06:51 UTC |