Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

(jeffa) 4Re: OO and <DATA>

by jeffa (Bishop)
on Aug 25, 2002 at 18:40 UTC ( [id://192706]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: OO and <DATA>
in thread OO and <DATA>

Yes, but don't forget to use tell first, lest you spit out the entire program via seek DATA,0,0 :
use strict; my $pointer = tell DATA; print get_data(); seek DATA,$pointer,0; print get_data(); sub get_data { do {local $/;<DATA>} }

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found