Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^5: How do I pretend a reference isn't a reference

by clinton (Priest)
on Nov 06, 2008 at 14:37 UTC ( #722005=note: print w/ replies, xml ) Need Help??


in reply to Re^4: How do I pretend a reference isn't a reference
in thread How do I pretend a reference isn't a reference

That's not what my code does, nor was I saying that $c was one thing at compile time and one at run time. This is what I do:

# init the app sub _ { 'compile time '.@_}; my $compile = _(1); sub foo { _(1) }; # finished compiling, so redefine sub _ sub _ { 'run time '.@_}; # run the code my $run = foo(); print " $compile - $run\n" __END__ compile time 1 - run time 1
UPDATE: Meant to reply to Re^5: How do I pretend a reference isn't a reference


Comment on Re^5: How do I pretend a reference isn't a reference
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-12-21 03:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (102 votes), past polls