in reply to Re: Subroutine speed
in thread Subroutine speed
the code is as follows , I hope now people can easily test it out and bring the best to me.
#!/usr/bin/perl -wIt's better to
nowadays.use warnings;
Are you sure you want "\t" rather than "\n"?use Strict; use File::Stat; use Digest::MD5; print "Enter the Path where all the data files are available:\t";
Since you're under strict this won't even compile. It is a good thing to post real code.$sourcedir= <STDIN>; chomp($sourcedir);
Update: Case matters! (Hadn't noticed your mistake in the first place.) Please (do a favour to yourself and) reread your program taking this into account.
open(LOG ,">>D:\\prad\\log1.csv");It's better to
can suffice.open my $fh, '>>', 'path/to/file' or die $!;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Subroutine speed
by vek (Prior) on Jan 22, 2005 at 05:45 UTC | |
by blazar (Canon) on Jan 24, 2005 at 11:53 UTC | |
by vek (Prior) on Jan 24, 2005 at 19:07 UTC |