Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Re: string concatenation

by DamnDirtyApe (Curate)
on Nov 13, 2002 at 02:04 UTC ( [id://212474]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: string concatenation
in thread string concatenation

Enlil beat me to the sprintf solution, but if you've got more complex date formatting to do, consider using the strftime function from the POSIX module.

use POSIX ; my $now = POSIX::strftime( "%H%M", localtime ) ; print $now, "\n" ;

_______________
DamnDirtyApe
Those who know that they are profound strive for clarity. Those who
would like to seem profound to the crowd strive for obscurity.
            --Friedrich Nietzsche

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://212474]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-19 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found