Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
dhosek
5y ago
0 comments
Share
use strict. In Perl you can prevent something like the following from compiling. You can't with Ruby (unless they've
finally
addressed that).
$foo = 2; if (some_test()) { $fooo = 3; }
undefined | Better HN
0 comments
default
newest
oldest
cutler
5y ago
Shouldn't that be:
my $foo = 2; ?
dhosek
OP
5y ago
I was leaving the declaration implicit.
j
/
k
navigate · click thread line to collapse