Front page | perl.beginners |
Postings from November 2009
Re: a match question
Thread Previous
|
Thread Next
From:
John W. Krahn
Date:
November 24, 2009 18:51
Subject:
Re: a match question
Message ID:
4B0C9B9B.501@shaw.ca
Shawn H Corey wrote:
>
> Also:
> $ perl -le '$_="aXXXb"; @captured = $_ =~ m{ (X*) }gmsx;print "captured:
> <", join( ">, <",@captured), ">"'
> captured: <>, <XXX>, <>, <>
@captured = $_ =~ m{ (X*) }gmsx;
Is usually written as:
@captured = /X*/g;
John
--
The programmer is fighting against the two most
destructive forces in the universe: entropy and
human stupidity. -- Damian Conway
Thread Previous
|
Thread Next