On Tue, 2008-08-12 at 23:56 -0700, Arun wrote:
> Hi,
>        As i am new to perl i just wanted to define a string with the
> current date and time.
> For example:
> current_date-current_time::Arun::current_date,current_time,Prakash
> 
> so how do i define this string......
> 
> 

The simplest way is to use localtime, see `perldoc -f localtime`.  If
you want more control over the format, see `perldoc POSIX` and search
for 'strftime'.


-- 
Just my 0.00000002 million dollars worth,
  Shawn

"Where there's duct tape, there's hope."

"Perl is the duct tape of the Internet."
        Hassan Schroeder, Sun's first webmaster


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to