in reply to Tying $@ - weird behavior

If you add:
$y = $@;
After the eval line, then the output is 42 ($y has the value 42 aswell).

If you add:
$y = "$@";
Then the output will be Illegal division... and $y will be set to that aswell...

Replies are listed 'Best First'.
Re^2: Tying $@ - weird behavior
by Limbic~Region (Chancellor) on Sep 27, 2004 at 21:25 UTC
    Anonymous Monk,
    It would appear that if you are making a "copy" as in the case of $y = "$@" or $y = $@ . 'asdf' it stays "illegal division by", but if you assign it to the actual value it changes. Weird ;-)

    Cheers - L~R