Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: What is the purpose of '||=' in the example code for Spreadsheet::XLSX

by jmlynesjr (Hermit)
on Nov 14, 2012 at 20:45 UTC ( #1003889=note: print w/replies, xml ) Need Help??


in reply to What is the purpose of '||=' in the example code for Spreadsheet::XLSX

Programming Perl(4th) page 27

$val ||="2"; # Set $val to 2 if it isn't already "true".

James

There's never enough time to do it right, but always enough time to do it over...

  • Comment on Re: What is the purpose of '||=' in the example code for Spreadsheet::XLSX
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003889]
help
Chatterbox?
[Eily]: Easy, fetch the list of all the modules that are not on CPAN and remove the ones on Github
[Corion]: Eily: Sure, but I haven't written that yet ;)
[Eily]: wait, *keep* only the ones on Github, otherwise you'll still have an infinit list
[Eily]: Corion so until you write it, the module that lists the module that do not exist on CPAN should return itself
choroba has just learned how to tell a chemist from a blue collar

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2017-04-24 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (437 votes). Check out past polls.