There's more than one way to do things | |
PerlMonks |
Re^2: problems with global $1by andyford (Curate) |
on Oct 22, 2007 at 19:16 UTC ( [id://646552]=note: print w/replies, xml ) | Need Help?? |
If the string is at the beginning of the line: you have the '^' at the beginning your regex. You also have to make sure that what you think is a single space is really a single space. Try changing the space in the regex to, say, '\s+' to match any kind and amount of white space. There are probably other things that could go wrong that I haven't thought of...
non-Perl: Andy Ford
In Section
Seekers of Perl Wisdom
|
|