Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Deferring variables

by Athanasius (Archbishop)
on Jun 25, 2022 at 14:24 UTC ( #11145038=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if($par{'margin-left'} ne 'a'){
      $actual = $par{'margin-left'}
    ...
      $actual = $par{'margin-horizontal'}
    }
    else{$actual = $par{'margin'}}
    
  2. or download this
    $actual = $par{'margin-left'} // $par{'margin-horizontal'} // $par{'ma
    +rgin'};
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2022-12-06 21:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?