Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Modules to reduce syntax? (joining namespaces)

by LanX (Saint)
on Dec 22, 2021 at 22:28 UTC ( [id://11139846] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<27> sub LIST { foo => { x => 42 } }
    
    ...
    
      cont:  say $hsh{foo}{$bar}
    42
    
  2. or download this
    sub func {
       var (\%hsh,\@arr) = @_;
    
    }
    
  3. or download this
    sub func {
       var ($hsh,$arr) = @_;  # ???
    
    }
    
  4. or download this
    sub func {
       var \(%hsh,@arr) = @_;
    
    }