boby has asked for the wisdom of the Perl Monks concerning the following question:
Can anyone tell me.Is their any possiblities to read and write a single file by using single file handling in perl programming.
i had tried the following code
only the content of FILEHANDLE is written to the filename.txt, where as it doesn't print <FILEHANDLE>;open(FILEHANDLE,"+<filename.txt"); print <FILEHANDLE>; print FILEHANDLE "Hai"; print FILEHANDLE "Bye";
why it so,
Edit: g0n - code tags and formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: file handing
by Corion (Patriarch) on May 30, 2007 at 06:35 UTC | |
|
Re: file handing
by andreas1234567 (Vicar) on May 30, 2007 at 07:57 UTC | |
|
Re: file handing
by syphilis (Archbishop) on May 30, 2007 at 07:47 UTC | |
|
Re: file handing
by siva kumar (Pilgrim) on May 30, 2007 at 06:54 UTC | |
by blazar (Canon) on May 30, 2007 at 12:20 UTC |