On Tue, 2008-08-19 at 16:50 +0530, SAP wrote:
> Hi Shawn,
>                   I want to dump a string to the remote sever with the
> current GMT date and time........
> This is the string:
> $send_data = strftime (::DATA::123456789101112,"%d.%m.%Y,%H:%M:%
> S",13.0076367,77.5489267,0,933.4,AirTel,31,0),gmtime;
>  
> this string dumps only up to {  ::DATA::123456789101112  }  but not
> the rest of the data.

This is an array, not a string:

  
(::DATA::123456789101112,"%d.%m.%Y,%H:%M:%S",13.0076367,77.5489267,0,933.4,AirTel,31,0)

Place these two line in the top of all your Perl scripts:

  use strict;
  use warnings;

Try:

  $send_data = strftime( 
"::DATA::123456789101112,%d.%m.%Y,%H:%M:%S,13.0076367,77.5489267,0,933.4,AirTel,31,0",
 gmtime);

Or:

  @send_data = ( "::DATA::123456789101112", strftime( "%d.%m.%Y,%H:%M:%S", 
gmtime ), 13.0076367, 77.5489267, 0, 933.4, "AirTel", 31, 0 );


-- 
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