in reply to Re: Pattern match not working sometimes
in thread Pattern match not working sometimes

At a guess, the stuff which is done in the place of the #Do some stuff comment uses $2.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^3: Pattern match not working sometimes
by dantheman1210 (Beadle) on Mar 18, 2012 at 20:45 UTC
    Very true, I am using both within that block.
      One thing I forgot to mention is that this is binary data, not "characters" if it makes a difference.
      One thing I forgot to mention is that this is binary data, not "characters" if it makes a difference.