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

Re: Deferring variables

by Athanasius (Archbishop)
on Jun 25, 2022 at 14:24 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-26 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found