It looks much more readable. Note that I've replaced several method calls prepare, excute. finish with single do.$sql->do(<<SQL); CREATE TABLE IF NOT EXISTS %log ( id INT (100) not null AUTO_INCREMENT, log1 CHAR (255) not null, .... .... ) SQL
Can be rewritten asfor($$i=0; $i<$#watcher+1; $i++) { $watch="$watcher[$i]"; ... ... }
for my $watch (@watcher) { }
In reply to Re: Clean Code - What a mess...
by IlyaM
in thread Clean Code - What a mess...
by PyroX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |