Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Passing hashes as arguments to a sub?

by jimbojones (Friar)
on Nov 28, 2005 at 21:30 UTC ( #512385=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $foo = CalcFoo( { bar => 'abc', baz => 'def' } );
    
    ...
      }
      return $foo;
    }
    
  2. or download this
    $line = padded({text=>$line, cols=>20..21, centered=>1, filler=>$SPACE
    +});
    
  3. or download this
    Odd number of elements in anonymous hash at demo.pl line 42
    
  4. or download this
    $line = padded(text=>$line, cols=>20..21, centered=>1, filler=>$SPACE)
    +;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://512385]
help
Chatterbox?
[Tabish]: Hi to everyone :). Can i use cgi table in package index.pm to return data in test.pl?
[Tabish]: return data in table

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2017-12-13 07:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (350 votes). Check out past polls.

    Notices?