in reply to Re^6: Warnings on unused variables?
in thread Warnings on unused variables?
#!/usr/bin/perl use warnings; use warnings::unused; use strict; BEGIN { print("1\n"); } sub foo { my $foo = 42; my $bar = 43; eval '$foo++'; print("4\n"); <>; # <-- Segfaults when this is executed. } # <-- Warns when this is compiled BEGIN { print("2\n"); } print("3\n"); foo(); print("5\n"); <>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Warnings on unused variables?
by AZed (Monk) on Sep 28, 2008 at 02:01 UTC | |
by ikegami (Patriarch) on Sep 28, 2008 at 02:46 UTC | |
by AZed (Monk) on Sep 28, 2008 at 05:33 UTC | |
by ikegami (Patriarch) on Sep 28, 2008 at 06:57 UTC |