Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^2: prototypes: so many \@'s?

by cdarke (Prior)
on Apr 03, 2007 at 14:24 UTC ( #608073=note: print w/replies, xml ) Need Help??

in reply to Re: prototypes: so many \@'s?
in thread prototypes: so many \@'s?

A prototype of (@) is meaningless. It does not force anything because the smallest list is empty: it asks for an argument in list context, not an array.
I don't think there is a prototype for what you ask, you will probably have to do without (ttt(\@a,\@b,\@c)) and use ref to check that each argument is of the correct type. Trouble is that this is a run-time check not a compile-time check as you get with a prototype.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2019-12-10 13:11 GMT
Find Nodes?
    Voting Booth?

    No recent polls found