in reply to Re: why is the content of frame.txt file not displaying
in thread why is the content of frame.txt file not displaying

my computer is behaving nuts!... see what its doing.. i prints the file frame.txt for the code:
open(fhrame,$filename) or die "Couldnt open '$filename': $!"; while(<fhrame>) { print "$_\n"; }
but it refuses to print the file for the code:
open(frame,$filename) or die "Couldnt open '$filename': $!"; while(<frame>) { print "$_\n"; }
the diffrence in the 2 sets of code is fhrame is replaced by frame. thats all. Can anyone ever give a logical explanation to this weird phenomena? or it seems there could be some prob with the word frame. maybe its a keyword or something.. what say?

Replies are listed 'Best First'.
Re^3: why is the content of frame.txt file not displaying
by Anonymous Monk on Jun 25, 2008 at 09:17 UTC
    Unlikely story.
    use strict;
    use warnings;
    use UPPERCASE for filehandles (thats the convention)
    make sure the file is not empty