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 -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/