Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Perl: When DWIM Doesn't. Parent comment
The pragma autodie also spots this problem!
So....
use strict; use warnings; use autodie; our $config; $config->{file_paht} = "somefile"; open my $fh, '<', $config->{file_path};
There are no comments on this comment yet.
The pragma autodie also spots this problem!
So....
Will throw an exception at open(). NB. Bizarrely the error is Use of uninitialized value $file in sprintf... but hey the problem is still caught :)