Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Redundant function calls in constructor?

by nemesdani (Friar)
on Apr 02, 2012 at 09:18 UTC ( [id://962984]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        $commonConfig_tmp->{ 'DAY' } = ${configContainer->getLocalTime}[3]
    +;
        $commonConfig_tmp->{ 'MONTH' } = ${configContainer->getLocalTime}[
    +4];
        $commonConfig_tmp->{ 'YEAR' } = ${configContainer->getLocalTime}[5
    +];
    
  2. or download this
    sub getLocalTime {
        my @timeData = localtime(time);
        @timeData[5] += 1900; 
        @timeData[4] += 1;
        return \@timeData;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://962984]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-25 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found