The proper way to open()

Paul londonpm90123 at rainslide.net
Wed Feb 1 11:10:47 GMT 2012


On Monday, 30 January, 2012 at 16:49:45 GMT, Abigail wrote:
>die "Bad config file $cfg" unless open my $ih, "<", $cfg;

The most important bit is the open, not the die, so it's better to have 'open or die' instead of 'die or open', IMHO.

-- 

.


More information about the london.pm mailing list