neversaint has asked for the wisdom of the Perl Monks concerning the following question:
Update: Thanks for the suggestions so far. I am aware that accessing with HOA can be done. But my problem is that the the generation of the @act_bsites coordinate took very long time, and I need to re-use them with other scripts. That's why I need to hardcode the else-if condition.#!/usr/bin/perl -w use strict; my $dataset = $ARGV[0] || 'foo1'; my @act_bsites; if ( $dataset eq 'foo1') { @act_bsites = ( '1 - 201 - 229', '2 - 201 - 229', '3 - 201 - 229', ); } elsif ( $dataset eq 'foo2') { @act_bsites = ( '1 - 201 - 218', '2 - 201 - 218', '3 - 201 - 218', '4 - 201 - 218', '5 - 201 - 218', '6 - 201 - 218', '7 - 201 - 218', ); } #..... goes on with 150 of such conditions (upto foo150). # do something with @act_bsites
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accessing Large Else-If Condition in a Separate Files
by Zaxo (Archbishop) on Jun 05, 2007 at 04:24 UTC | |
|
Re: Accessing Large Else-If Condition in a Separate Files
by bobf (Monsignor) on Jun 05, 2007 at 04:20 UTC | |
|
Re: Accessing Large Else-If Condition in a Separate Files
by GrandFather (Saint) on Jun 05, 2007 at 04:25 UTC | |
|
Re: Accessing Large Else-If Condition in a Separate Files
by GrandFather (Saint) on Jun 05, 2007 at 04:44 UTC | |
by moritz (Cardinal) on Jun 05, 2007 at 09:35 UTC | |
by neversaint (Deacon) on Jun 05, 2007 at 09:49 UTC | |
by Util (Priest) on Jun 05, 2007 at 13:28 UTC | |
|
Re: Accessing Large Else-If Condition in a Separate Files
by TilRMan (Friar) on Jun 06, 2007 at 04:49 UTC |