in reply to Re: unexpected: inside sub($1,$2) if do // then arguments will be changed
in thread unexpected: inside sub($1,$2) if do // then arguments will be changed

Try it like this: \(&mysub(<$1> <$2>));

What does that do?


Improve your skills with Modern Perl: the free book.

  • Comment on Re^2: unexpected: inside sub($1,$2) if do // then arguments will be changed

Replies are listed 'Best First'.
Re^3: unexpected: inside sub($1,$2) if do // then arguments will be changed
by Mr. Muskrat (Canon) on Sep 13, 2011 at 18:56 UTC

    It's a dressed up version of this:

    print "'$1' '$2'";

        It doesn't but I'm sure that Khen1950fx thinks that it does.