in reply to Re: &process or die
in thread &process or die

Dear mscharrer Thanks a lot for your help

I have taken into consideration what you have said. In fact the last line of my subroutine is:

chdir("$path_to_the_script_directory") or die;

And I do not have any errors (when I do not use "or die" for process() )

But in my operations of process(), I have used :

while (my $line = <$INFILE>){

And when I want to print $_ after the loop, I have :

Use of uninitialized value in concatenation (.) or string at

Replies are listed 'Best First'.
Re^3: &process or die
by chromatic (Archbishop) on Apr 18, 2008 at 16:36 UTC
    And when I want to print $_ after the loop, I have

    $_ and $line are different variables. The contents of one may or may not reflect the contents of the other.