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

Standard way to convert timezone in multithreaded script

by whale2 (Novice)
on Nov 23, 2009 at 15:21 UTC ( [id://808830]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
        $t = localtime;
        print "in thread: ",$t,"\n";
    }
    
  2. or download this
    $ ./mt-demo.pl
    local time: Mon Nov 23 15:14:06 2009
    ...
    in thread: Mon Nov 23 15:14:06 2009
    main: Mon Nov 23 16:14:06 2009
    main: Mon Nov 23 18:14:06 2009
    
  3. or download this
    $ perl -V
    Summary of my perl5 (revision 5 version 10 subversion 0) configuration
    +:
    ...
        /usr/local/lib/perl5/5.10.0
        /usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi
        /usr/local/lib/perl5/site_perl/5.10.0
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-19 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found