in reply to Re^3: Strange modification of @_
in thread Strange modification of @_
I think the takeaway for me is that when passing $1, etc into a function, that it should be quoted (to copy it), even though the general rule is when passing a variable $var into a function, (almost) never should it be quoted, as in fn("$var"). This feels exactly like the kind of kludgy rules you have to remember to use C++ "correctly".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Strange modification of @_
by ikegami (Patriarch) on Apr 24, 2009 at 20:34 UTC | |
by jrw (Monk) on Apr 24, 2009 at 20:51 UTC | |
by ikegami (Patriarch) on Apr 24, 2009 at 21:58 UTC |