Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Is this code correct

by LanX (Saint)
on Mar 22, 2021 at 17:34 UTC ( [id://11130148]=note: print w/replies, xml ) Need Help??


in reply to Is this code correct

> How to assign an uninitialized variable with a proper value ?

you probably(?) want $a //= $sixth;

edit

i.e. $a = $sixth if not defined $a;

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-03-28 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found