Semiyi.Abiola wrote: > Hi, Hello,
> I got a file with this line: > > > 200607081000@@01510 > > It means Datetime@@Values > > I'm trying to insert this in Mysql with fields terminated by `@@`'; > > It's works fine but i got the wrong Datetime. > How kann i change 200607081000 <mailto:200607081000@@01510> into > 2006-07-08 10:00 <mailto:200607081000@@01510> $ perl -le' $_ = "200607081000"; print; s/(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)/$1-$2-$3 $4:$5/; print; ' 200607081000 2006-07-08 10:00 John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>