> Related
> 
> Jarkko would really like
> 
>   print "Foo\n";
> 
> in a void context to behave as
> 
>   print "Foo\n" or die $!;

Not just basic I/O but anything 'system': pipe(), system(), opendir(),
mkdir(), chdir(), fork(), socket(), and so on.

> I think that it would be nice in 5.8 to (optionally on some pragma?) make
> print, close and a few others in void context croak.
>
> It would actually make writing perl scripts easier. You'd know when your
> disk became full (or you went over quota), albeit in with a messy error.
> OK, script crashing with an uncaught exception isn't nice, but it's nicer
> than silently losing data IMHO.
> 
> Nicholas Clark

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Reply via email to