Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: passing multiple hashes to a subroutine

by AnomalousMonk (Chancellor)
on Oct 19, 2011 at 19:46 UTC ( #932484=note: print w/replies, xml ) Need Help??


in reply to passing multiple hashes to a subroutine

sub count_orientation($ \% \%){

I was a bit surprised to find that spaces in a prototype declaration are accepted. A quick perusal of the perlsub documentation for ActiveState 5.8.9 and Strawberries 5.10.1 and 5.12.3 reveals no mention of whitespace. Ya learn somethin' every day.

The general consensus regarding prototypes seems to be that they were a good idea that was only 60%-80% baked, and that one should probably not use them unless one knows exactly how they work; the fact that Jaapx is calling a prototyped function in such a way as to defeat prototyping suggests he or she does not.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932484]
help
Chatterbox?
[ovedpo15]: how fast and a good way to print error if more than one out of three variables are defined? for example if there are $a $b $c. I want that if for example $a and $b are defined - print error (also for $a and $c or $b and $c)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2018-04-22 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?