[Israel.pm] Using variables

Gaal Yahas gaal at forum2.org
Tue Jan 6 09:49:56 PST 2009

On Tue, Jan 6, 2009 at 7:34 PM, Jason Elbaum <jason.elbaum at gmail.com> wrote:
>> To answer your question: your attempt ${"var$digit"} wold have worked
>> if $var1 were a package global and not a lexical.
> And if "use strict" is disabled - at least 'no strict "refs"'

Yes. Unlike the "my" "problem", Perl gives a useful error message for
this obstacle.

Gaal Yahas <gaal at forum2.org>

More information about the Perl mailing list