in reply to 'my' buggy...
You're attempting to use a symref to access a lexical variable, which won't work since lexicals don't reside in the symbol table. This won't work either:
$ perl -le 'my $foo = 5; print ${"foo"}' $
A use strict would have produced a gripe.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: 'my' buggy...
by december (Pilgrim) on Apr 30, 2002 at 16:15 UTC | |
by japhy (Canon) on Apr 30, 2002 at 16:16 UTC | |
by december (Pilgrim) on Apr 30, 2002 at 16:19 UTC | |
by december (Pilgrim) on Apr 30, 2002 at 16:28 UTC |