in reply to here is a script to log what you do during the day...
$output = capture("$comando"); ... $outTitolo = capture("$titolo");
Why are you copying $comando and $titolo to strings instead of using them directly?
What's wrong with always quoting "$vars"?
undef my $oreTotali;
Why would you use undef there? Just because you can? It is superfluous in that context.
print FILE "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
Probably better as:
print FILE "\n" x 17;
sub count_unique { my @array = @_; my %count; map { $count{$_}++ } @array;
Why make a copy of @_ when you don't really have to? Why use map in void context and create a list that you are not going to use?
sub count_unique { my %count; $count{$_}++ for @_;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: here is a script to log what you do during the day...
by ikegami (Patriarch) on Feb 07, 2011 at 21:51 UTC | |
by jwkrahn (Abbot) on Feb 07, 2011 at 22:34 UTC | |
by ikegami (Patriarch) on Feb 07, 2011 at 23:10 UTC | |
|
Re^2: here is a script to log what you do during the day...
by gianni (Novice) on Feb 07, 2011 at 11:24 UTC |