[BristolBathPM] Puzzle of the day: O_CREAT
Alex Francis
alex at alexfrancis.org.uk
Thu Oct 23 10:19:26 BST 2008
(At the meetup on Tuesday I promised to post more to the list...)
A little puzzle:
$ perl -e 'use File::Temp qw(tempfile); print defined &O_CREAT ?
"yes\n" : "no\n"'
no
$ perl -e 'use IO::File; print defined &O_CREAT ? "yes\n" : "no\n"'
no
$ perl -e 'use File::Temp qw(tempfile); use IO::File; print defined
&O_CREAT ? "yes\n" : "no\n"'
yes
What's going on here then? I have the answer, which I'll send to the
list in an hour or so if nobody else sends it :-)
Alex
More information about the BristolBathPM
mailing list