> 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
- End-of-scope actions, redux. Tony Olekshy
- End-of-scope actions: Background. Tony Olekshy
- Re: End-of-scope actions: Background. Branden
- Re: End-of-scope actions: Background. Tony Olekshy
- Re: End-of-scope actions: Background. Tony Olekshy
- Re: End-of-scope actions: Background. Nicholas Clark
- Re: End-of-scope actions: Background. Jarkko Hietaniemi
- Re: End-of-scope actions: Background. Peter Scott
- Re: End-of-scope actions: Background. Peter Scott
- Re: End-of-scope actions: Background. Simon Cozens
- Re: End-of-scope actions: Background. Graham Barr
- End-of-scope actions: Visibility. Tony Olekshy
- End-of-scope actions: POST blocks. Tony Olekshy
- Re: End-of-scope actions: POST blocks. James Mastros
- Re: End-of-scope actions: POST blocks. Tony Olekshy
- Re: End-of-scope actions: POST blocks. Tony Olekshy
- End-of-scope actions: Reference model 2.0.2.1. Tony Olekshy