Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: regexp /gs oddity or bug

by straywalrus (Friar)
on Apr 22, 2002 at 23:39 UTC ( #161180=note: print w/replies, xml ) Need Help??


in reply to regexp /gs oddity or bug

Just another data point: I run perl 5.6.0 on SlakWare 7.1.0 and the output I got from the script,
$_ = "is this odd or not?"; @a = /(.*? )/gs; print @a;
was: "is this odd or". nothing was beyond the or

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://161180]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2016-09-25 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (464 votes). Check out past polls.