in reply to Re^2: my $1
in thread my $1
You're right. I still had this on the mind. It was posted only two hours before.
Back to your problem. There isn't one if you don't use globals. Fix:
if (my ($pre, $post) = m/(.+?)\+(.+)/) { return diff($pre)."+".diff($post); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: my $1
by mltucker (Initiate) on Apr 24, 2009 at 01:30 UTC | |
by ikegami (Patriarch) on Apr 24, 2009 at 02:30 UTC |