deepfryed has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; my $foo = 1; sub foo : lvalue { $foo }; foo() = 10; #will print 1 in perl -d print foo(), $/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: lvalue and perl debug
by ikegami (Patriarch) on Dec 09, 2007 at 21:12 UTC | |
by deepfryed (Novice) on Dec 09, 2007 at 22:24 UTC | |
by aquarium (Curate) on Dec 09, 2007 at 23:28 UTC | |
by deepfryed (Novice) on Dec 10, 2007 at 00:29 UTC | |
|
Re: lvalue and perl debug
by doom (Deacon) on Dec 10, 2007 at 03:24 UTC | |
by deepfryed (Novice) on Dec 10, 2007 at 08:45 UTC | |
by deepfryed (Novice) on Dec 11, 2007 at 20:57 UTC |