OGProphet has asked for the wisdom of the Perl Monks concerning the following question:
Hey guys!
So I'm very new at this so please bear with me.
I've created a script that allows you to print specific excel files within a folder based on the keyword. The keyword is consistent with all the files e.g., 160526GRAD.
Everything works fine except for this specific part of the file name where the number changes all the time. ex 160526GRAD-T5, 160526GRAD-T6, 160526GRAD-T7.
My question is, is there a way to have the script look for any number value or a range of values (0-100) when trying to look for that file? I've searched hours but I haven't been able to find what I need =(
my $a = qw(0,100); $keyword_EVO100 = "$path"."Output\\$keyword_EVO100"; $keyword_folder = "$path"."Output\\$keyword\_$initial\_$i";
my $PRIMERMAP_open = $Excel->Workbooks->Open("$keyword_folder\\$keywor +d\_EVO100\\$keyword\-T$a\_PRIMERS_PrimerList.xlsx"); my $PRIMERMAP = "$keyword_folder\\$keyword\_EVO100\\$keyword\-T$a\_PRI +MERS_PrimerList.xlsx"; if(!(-e $PRIMERMAP)) { print "Primer List file is missing. Please make sure file is in correc +t folder!\n"; print "Press <Enter> to exit\n"; <>; exit(1); } $PRIMERMAP_open->PrintOut; $PRIMERMAP_open->close;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Numerical Value question
by davido (Cardinal) on May 27, 2016 at 03:35 UTC | |
|
Re: Numerical Value question
by AnomalousMonk (Archbishop) on May 27, 2016 at 04:12 UTC | |
|
Re: Numerical Value question
by vinoth.ree (Monsignor) on May 27, 2016 at 03:50 UTC | |
|
Re: Numerical Value question
by 1nickt (Canon) on May 27, 2016 at 03:24 UTC | |
|
Re: Numerical Value question
by Laurent_R (Canon) on May 27, 2016 at 06:19 UTC |