Yup, basically what GrandFather said. "Junk characters" isn't diagnostical like a Data::Dump::dd()dumper of the data ( Basic debugging checklist , How do I post a question effectively? )
Also, $1 and $2 won't last forever, the first call to function() could easily change both variables before the second call to function(), so you might want to save the values in another variable
In reply to Re: Regex, Function and Default variables
by Anonymous Monk
in thread Regex, Function and Default variables
by tosaiju
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |