[Brisbane-pm] Regex Syntax - Context is everything

Martin Jacobs martin_jacobs at optusnet.com.au
Mon Apr 16 21:08:02 PDT 2007


Thanks for all your replies,

Got it fixed with Jacinta's suggestion, which condenses to...

($rain) = ($rain =~ m|(\d+(:?\.\d+)?)|x);

I had read about list and scalar context, but I must admit that it I  
could not make any sense of it at the time.


Regards,
Martin
Visit my website...
http://web.mac.com/martin_jacobs1


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/brisbane-pm/attachments/20070417/d3fc260f/attachment.html 


More information about the Brisbane-pm mailing list