in reply to Re: Limiting number of regex matches
in thread Limiting number of regex matches
Or Maybe this:
Outputuse warnings; use strict; my $str = 'dog dog dog dog dog'; print join " " => ( split /\s+/, $str )[ 0 .. 2 ];
dog dog dog
If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Limiting number of regex matches
by Anonymous Monk on Sep 25, 2012 at 22:19 UTC | |
by 2teez (Vicar) on Sep 25, 2012 at 23:42 UTC | |
by Anonymous Monk on Sep 25, 2012 at 23:51 UTC |
In Section
Seekers of Perl Wisdom