Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Defining Subroutines

by janx (Monk)
on Oct 24, 2002 at 06:58 UTC ( [id://207631]=note: print w/replies, xml ) Need Help??


in reply to Defining Subroutines

Watch out for that comparison you do!
$a = $b; # assigns the value of $b to $a $a == $b; # compares the two numerically
Note that your code won't fail compiling (aside from the already answered sub issues ;-)) but it won't do what you expect it would.

janx

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-07-23 05:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.