in reply to Re^2: Elements added to hash in for loop
in thread Elements added to hash in for loop

I'm not nathaniels, but ...

> I hope that you use warnings so that if you employ the common parameter passing ... you will at least receive a warning message from Perl in case of such a lapse.

which warning?

DB<102> use warnings;use strict; sub tst { my $scalar=@_; print $sca +lar } DB<103>

=)

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^4: Elements added to hash in for loop
by AnomalousMonk (Archbishop) on Dec 13, 2013 at 20:39 UTC
    >perl -le "use warnings; use strict; sub tst { my ($scalar) = @_; print $scala +r } tst " Use of uninitialized value $scalar in print at -e line 1.

    That warning :)