Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: multiple __DATA__ && __END__

by Anonymous Monk
on Nov 21, 2003 at 05:03 UTC ( [id://308837]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to multiple __DATA__ && __END__

Hi,

As Inline::Files seems to be the solution you could do something really dirty to be able to use it!

#!C:/activeperl/bin/perl-w use strict; open(OFILE,">myfile.pm") or die("Can't open myfile.pm\n$!"); print OFILE <<EOF; package myTestPackage; sub mytest() { print "hello World!\n"; } 1 EOF close(OFILE); require "myfile.pm"; myTestPackage::mytest();

Horrible solution but this simple code works. Don't see why you can't put the Inline::Files code in the here document...

- Mark

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://308837]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.