On Thu, 9 Mar 2006, Practical Perl wrote:

> Here is my script:
> 
> #!/usr/bin/perl
> use strict;
> use warnings;
> 
> my $date=`date +%y%m%d`;
> chomp $date;

^^^

Not that this is your problem, but why on earth are you shelling out for 
the date? Perl can do this just fine, you know, and you don't even have 
to chomp() the result :-)

> Why this happen and how to resolve it? Any suggestion is welcome.Thanks.

What happened when you benchmarked your script? 

Where did you determine that it is spending the most time? 

Figure that out and then you'll know where to focus your attention.


-- 
Chris Devers

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