Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Forward declaration of subs

by ikegami (Pope)
on Oct 14, 2013 at 04:46 UTC ( #1058125=note: print w/replies, xml ) Need Help??

in reply to Forward declaration of subs

>perl -wE"sub foo { bar('a','b'); } sub bar($) { } foo(); say 'done'" done >perl -wE"sub bar($); sub foo { bar('a','b'); } sub bar($) { } foo(); +say 'done'" Too many arguments for main::bar at -e line 1, near "'b')" Execution of -e aborted due to compilation errors.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058125]
[marto]: and I'm off next week1
[Corion]: Whee! ;)
[Corion]: I was away last week already, so I know how good a week off is ;))
[Discipulus]: a barter with your time (above the poorline time is always better than money)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2017-02-28 10:16 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (399 votes). Check out past polls.