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

Re: Re: C pre-processor in Perl

by perrin (Chancellor)
on Jul 28, 2003 at 19:43 UTC ( #278585=note: print w/replies, xml ) Need Help??


in reply to Re: C pre-processor in Perl
in thread C pre-processor in Perl

I would use globals for that, since they don't get messed up by use in a quoted context.

BEGIN { use vars qw($FOO); $FOO = ... # some slow action here } if ($FOO) { }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2021-05-15 03:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (150 votes). Check out past polls.

    Notices?