Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Re: passing arguments in a dispatch table

by CharlesClarkson (Curate)
on Apr 28, 2002 at 06:36 UTC ( #162626=note: print w/replies, xml ) Need Help??

in reply to Re: passing arguments in a dispatch table
in thread passing arguments in a dispatch table

Gee. You'd think you weren't looking over my shoulder the whole day and only had this one message to figure out what was going on.    :)

If we change the dispatch table:
my $dispatch = { add => \&add_entry( $fruit ), };
We get this result:
Sun Apr 28 01:23:38 2002 <--   in sub 
Sun Apr 28 01:23:39 2002
Not a CODE reference at line 17.

The test in the original example allowed me to see that the times were in the correct order. If perl was running the sub immediately, the times would be out of order. I was unsure if this test made sense. Hence the question.

Charles K. Clarkson
Clarkson Energy Homes, Inc.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (14)
As of 2016-10-25 14:15 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (320 votes). Check out past polls.