John wrote:
hello

Hello,

I want to split the datetime of apache log

i tried this code with no success

@fields=split(/[/:]/, $datetime); ### DD/MM/YYYY:HH:MM:SS

has anyone tried anything like that?

my @fields = $datetime =~ /\d+/g;


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>




Reply via email to