IWETHEY v. 0.3.0 | TODO
1,095 registered users | 1 active user | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Suggestion
\nopen DEVICE, $file || die "Cannot open $file: $!\\n";\n


Either:
open (DEVICE, $file) || die "Cannot open $file: $!\\n";
or
open DEVICE, $file or die "Cannot open $file: $!\\n";

but NEVER

open DEVICE, $file || die "Cannot open $file: $!\\n";


The "or" has lower precedence. You can get into a situation where logic on the right hand side of the || gets executed before the open. Very bad habit.
New Thanks.
That's just the sort of thing I'm not really very aware of. Well, that and the small issue of "writing good Perl".


Peter
[link|http://www.ubuntulinux.org|Ubuntu Linux]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
[link|http://guildenstern.dyndns.org|Home]
Use P2P for legitimate purposes!
New My pleasure
I figure I'm working off my mail seed fee.
     Comparing Big Lists in Perl - (pwhysall) - (21)
         I'd probably do something like this - (broomberg) - (20)
             Thanks - (pwhysall) - (14)
                 ROFL - (admin) - (12)
                     Why rofl? - (pwhysall) - (11)
                         That's not the issue. - (admin) - (10)
                             All of them. You. - (pwhysall) - (3)
                                 So, you want EMACS in *Z*? -NT - (folkert) - (2)
                                     *I* can't think of a single *valid* objection. -NT - (pwhysall)
                                     No, gvim - (broomberg)
                             You're being too lazy - (ben_tilly) - (5)
                                 Au contraire - (admin) - (4)
                                     You can still leverage the effort though... - (ben_tilly) - (3)
                                         "just"... -NT - (admin) - (2)
                                             Compared to what you save... - (ben_tilly) - (1)
                                                 Compared to doing nothing and laughing at Peter... - (admin)
                 Don't forget the pretty print feature as well... - (ChrisR)
             Here's the whole (working, ugly) program - (pwhysall) - (4)
                 Suggestion - (broomberg) - (2)
                     Thanks. - (pwhysall) - (1)
                         My pleasure - (broomberg)
                 sig_array global bad. - (broomberg)

Grrrr, watch me beat my chest.
88 ms