Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: File Input and Output

by Anonymous Monk
on Aug 26, 2003 at 09:31 UTC ( #286633=note: print w/replies, xml ) Need Help??


in reply to Re: File Input and Output
in thread File Input and Output

Hi, I have just started working on PERL and am facing this problem. Is the implementation done like this? i have a text file sample.txt which has 3 lines abc deg hij when i read everything once i get all the details and then am not able 2 read it again. code used is open(file1,"sample.txt"); print(<file1>); $line1=<file>; print($line1); This does not print anything. Can u pls suggest?Have I done some mistake? Thanks KP

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://286633]
help
Chatterbox?
[Corion]: Yay! As I had to reset my phone again, I now also back up my SMS automatically. Highly conveniently, there is a program to back up my SMS to my IMAP server as mails ;)

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2017-11-18 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?