FAQ
print() on a handle opened only for input yields an io warning but
syswrite() does not.

$ perl -Mwarnings=io -e 'open $fh, "/dev/null" or die $!; print $fh 0 or
warn $!'
Filehandle $fh opened only for input at -e line 1.
Bad file number at -e line 1.

$ perl -Mwarnings=io -e 'open $fh, "/dev/null" or die $!; syswrite $fh,
0 or warn $!'
Bad file number at -e line 1.

Are people using syswrite() expected to be better coders ;-)?

Peter

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl5-porters @
categoriesperl
postedSep 28, '04 at 4:48p
activeSep 28, '04 at 4:48p
posts1
users1
websiteperl.org

1 user in discussion

Dintelmann, Peter: 1 post

People

Translate

site design / logo © 2021 Grokbase