in reply to Re^2: Strange behavior: passing $1 to AUTOLOAD
in thread Strange behavior: passing $1 to AUTOLOAD
Function parameters are passed by reference. This means @_ contained $1 which is modified by any successful regex. You can modify values in @_ directly to watch this.
Most of the time you aren't passing something like $1 in and don't have to worry about the issue you ran into
|
|---|