Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
In my programs I always end up with a zillion global variables. These are used at different subroutines and it would be very laborious to pass them around as parameters.
Any suggestions on an all-inclusive data structure?
my $alias_line_count = 0; my @alias_label_array = (); my @alias_value_array = (); my @officer_label_array = (); my @officer_value_array = (); my $officer_count = 0; my @ap_label_array = (); my @ap_value_array = (); my $ap_line_count = 0; my $ap_person_count = -1;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: data structure question
by tobyink (Canon) on Aug 30, 2013 at 12:12 UTC | |
by Lotus1 (Vicar) on Aug 30, 2013 at 12:42 UTC | |
Re: data structure question
by roboticus (Chancellor) on Aug 30, 2013 at 12:29 UTC | |
by Anonymous Monk on Aug 30, 2013 at 12:37 UTC | |
Re: data structure question
by daxim (Curate) on Aug 30, 2013 at 11:49 UTC | |
by SuicideJunkie (Vicar) on Aug 30, 2013 at 14:06 UTC | |
by daxim (Curate) on Aug 30, 2013 at 14:45 UTC | |
by SuicideJunkie (Vicar) on Aug 30, 2013 at 15:23 UTC | |
by Anonymous Monk on Aug 30, 2013 at 11:51 UTC | |
Re: data structure question
by hdb (Monsignor) on Aug 30, 2013 at 11:52 UTC | |
Re: data structure question
by SuicideJunkie (Vicar) on Aug 30, 2013 at 14:17 UTC | |
Re: data structure question
by BillKSmith (Monsignor) on Aug 30, 2013 at 14:06 UTC |
Back to
Seekers of Perl Wisdom