Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: When to use Prototypes?

by Aristotle (Chancellor)
on Nov 10, 2001 at 21:18 UTC ( #124569=note: print w/replies, xml ) Need Help??

in reply to Re: When to use Prototypes?
in thread When to use Prototypes?

I don't think it does much for readability, since at best you see the projected type of argument, but still have to look the meaning of each of them. Putting a cleanly written and commented local variable assignment like my ($ip, $port, $use_udp, $msg_array) = @_; at the top of a function will probably help a lot more.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://124569]
[ovedpo15]: can't I use just use lib $FindBin::Bin/../ bin" asuming that p2 is in ./bin and p1 is in /config? it says "cant find" altought p2 is
[moritz]: ovedpo15 "use lib" is only for .pm files
[moritz]: if you don't have .pm file, you might to use "require" or "do" with an absolute path

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2018-03-17 20:43 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (226 votes). Check out past polls.