Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

(tye)Re: Closing and re-opening the DATA Filehandle

by tye (Sage)
on Apr 04, 2001 at 23:14 UTC ( #69809=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my $pos= tell(DATA);
      chomp( my $x= <DATA> );
      warn "Testing($x)";
    ...
      warn "Testing($x)";
    __END__
    some data
    
  2. or download this
    Testing(some data) at redata.pl line 4, <DATA> line 1.
    Testing at redata.pl line 12.
    Testing(some data) at redata.pl line 14, <DATA> line 1.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://69809]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2019-08-19 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (141 votes). Check out past polls.

    Notices?