and then latermy $replacement = sub { return unpack("a1", shift); };
for (@array) { s/HAI WORLD Times ([0-9]+).*/ '\t\t<exML LOLZ = "' . $replacement->($1) . '"/>' /eg; }
In reply to Re: Function call in regex replacement string
by tilly
in thread Function call in regex replacement string
by PoorLuzer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |