1 2 3 4 5 6 7 | if (something) dothis(); # does NOT work if (something) # usually works great { dothis(); } dothis() if (something); # my favorite, but see 3.1 # (it should be documented) |
1 2 3 4 | if (!eof()) ... unless(eof()) ... if (!clear && !ready) ... unless(clear || ready) ... |
1 2 3 4 5 6 | $this_variable_name_is_too_long = 1; while ( ) { $this_variabel_name_is_too_long++; } |
1 2 3 4 5 6 | my $this_variable_name_is_too_long = 1; while ( ) { $this_variable_name_is_too_long++; } |
1 2 3 | use constant CHILDREN => 3; # 3 children per process use constant PI => 3.14; # 2 digits of precision use constant MESSAGE => "Hello"; # a message |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |