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

Re: Coding for two platforms in one Script

by giulienk (Curate)
on Dec 05, 2001 at 21:58 UTC ( [id://129683]=note: print w/replies, xml ) Need Help??


in reply to Coding for two platforms in one Script

I don't know autouse.
Anyway, why don't you put your use into an eval?
Like:
my $module = 'Win32::EventLog'; eval("use $module"); die "Are you sure you included $module in the correct place? " . $@ if $@;

gkinueliileunikg

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-20 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found