[BristolBathPM] Puzzle of the day: O_CREAT

max psykx psykx.out at googlemail.com
Thu Oct 23 11:52:00 BST 2008


When you 'use IO::file' it checks to see if the there as a variable
available from 'File::Temp' before it defines &O_CREAT then the
ternary if provides out put the line below is my proof if this


$perl -e 'use IO::File; use File::Temp qw(tempfile);  print defined
&O_CREAT ? "yes\n" : "no\n"'

no


Max


More information about the BristolBathPM mailing list