Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: eval order of args to a sub

by andreas1234567 (Vicar)
on May 31, 2007 at 09:33 UTC ( [id://618446]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub padded {
        my ($arg_ref) = @_;
    ...
            . $arg_ref->{text}
                . $arg_ref->{filler} x $right;
    }
    
  2. or download this
    for my $line (@lines) {
        $line = padded({ text=>$line, cols=>20, centered=>1, filler=>$SPAC
    +E });
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://618446]
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-20 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found