Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Accessing the __DATA__ blocks of other packages

by caedes (Pilgrim)
on Dec 11, 2002 at 22:24 UTC ( [id://219199]=note: print w/replies, xml ) Need Help??


in reply to Re: Accessing the __DATA__ blocks of other packages
in thread Accessing the __DATA__ blocks of other packages

While I don't doubt that your code works, I think you might have misunderstood me. To make your example like my problem, the package Foo would have a subroutine with the while(<main::DATA>), and the main script would have the __DATA__ token. This is really too simplified though because Foo doesn't know what it's caller is ahead of time (it's not always main).

-caedes

  • Comment on Re: Re: Accessing the __DATA__ blocks of other packages

Log In?
Username:
Password:

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

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

    No recent polls found