newatperl has asked for the wisdom of the Perl Monks concerning the following question:
I'm reading in a text file, and I'm parsing each line into a unique structure. I've found that I can't dynamically allocated new variables if I use strict since it seems using strict means that all variables have to explicitly defined in main. Is this true? Is there an elegant to dynamically create structures (or any variables)?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Dynamically allocating variables
by Fastolfe (Vicar) on Dec 02, 2001 at 05:26 UTC | |
by newatperl (Acolyte) on Dec 02, 2001 at 05:36 UTC | |
by Fastolfe (Vicar) on Dec 02, 2001 at 06:04 UTC | |
by newatperl (Acolyte) on Dec 02, 2001 at 06:18 UTC | |
by tilly (Archbishop) on Dec 02, 2001 at 11:13 UTC | |
by Fastolfe (Vicar) on Dec 02, 2001 at 08:55 UTC | |
by jeffa (Bishop) on Dec 02, 2001 at 06:17 UTC | |
Re: Dynamically allocating variables
by wog (Curate) on Dec 02, 2001 at 05:28 UTC |
Back to
Seekers of Perl Wisdom