Re: uninitialized value in pattern match



Hello!

Thank you for answering!
$parameter_list was defined; I used in the posting only the
line that caused the warning. The code has the following structure
("..." indicates only that there are more variables/lines of the same
type). But you were right with your guess: with
for my $j (0 .. $parameter_list_nr -1)
it worked. Thank you!

best regards
Guenter


######
use diagnostics;

my $TempParaTXT_folder = 'C:/ART/IM_Composing/TempParameterTXT/';
opendir(DIR, "$TempParaTXT_folder") || die "folder not found: $!";
@TempParaTXT = grep(/\.txt$/, readdir(DIR));

my $parameter_txt_name = $TempParaTXT[0];
my $parameter_txt_fullpath = $TempParaTXT_folder .
$parameter_txt_name;

open(A, "$parameter_txt_fullpath");
@parameter_list = <A>;
my $parameter_list_nr = @parameter_list;


my ($parameter_1, $parameter_2, ...);

for my $j (0 .. $parameter_list_nr -1) {
if ($parameter_list[$j] =~ /parameter_1$/) {$parameter_1 =
$parameter_list[$j+1]};
if ($parameter_list[$j] =~ /parameter_2$/) {$parameter_2 =
$parameter_list[$j+1]};
...
};
######

.



Relevant Pages

  • Re: Please help stir up the Blacks
    ... Then why the fuck do you keep posting? ... WARNING: Addictive ...
    (alt.fan.howard-stern)
  • Re: FILLER
    ... I read this article before posting my question, ... information I found about the makeimage toool in PB docs. ... "coredll.dll FileName 80392fdc Warning: Module 12 FILLER" ... Regards... ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Install Windows Patch via GPO
    ... Best regards ... Meinolf Weber ... Disclaimer: This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.windows.group_policy)
  • Re: Install Windows Patch via GPO
    ... Best regards ... Disclaimer: This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.windows.group_policy)
  • Re: SID filter between a W2k and a W2k Domain
    ... Best regards ... Disclaimer: This posting is provided "AS IS" with no warranties, ... I created a W2k Test Domain this morning and I did a trust between the ...
    (microsoft.public.windows.server.migration)