in reply to Re: write and read the same file not display the output
in thread write and read the same file not display the output
thanks for the help
Now I am trying in different way, please correct if I am wrong
while ( <$fi> ) { #print "$_"; my $a = $1 if /(^$name$)/; print $a; } close $fi;
But when I run the file output show nothing, and it shows me some message, I am not getting where is the issue please see the below output
perl readwritefile.pl Use of uninitialized value $a in print at readwritefile.pl line 15, <$ +fi> line 1. Use of uninitialized value $a in print at readwritefile.pl line 15, <$ +fi> line 2. Use of uninitialized value $a in print at readwritefile.pl line 15, <$ +fi> line 3.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: write and read the same file not display the output
by Rudolf (Pilgrim) on Sep 05, 2012 at 01:53 UTC | |
by Kenosis (Priest) on Sep 05, 2012 at 02:07 UTC | |
by Rudolf (Pilgrim) on Sep 05, 2012 at 03:08 UTC | |
by Kenosis (Priest) on Sep 05, 2012 at 04:53 UTC | |
by Rudolf (Pilgrim) on Sep 05, 2012 at 13:09 UTC |