Front page | perl.perl5.porters |
Postings from January 2004
open(1, <filename>) ?
Thread Previous
From:
Sreeji K Das
Date:
January 24, 2004 07:54
Subject:
open(1, <filename>) ?
Message ID:
20040124155346.27517.qmail@web10508.mail.yahoo.com
I was expecting the following code snippet to give an
error (something like 1st arg. not a glob).
% perl5.8.2 -e 'open(1, ">tst") || die "error - $!\n";
print STDOUT "test\n";'
test
%
strace() shows that perl indeed calls open() - any
idea what happens to the returned handle ? Obviously
print 1 "test\n" won't work - so the above form should
be an error ?
(ofcourse, I didn't expect print STDOUT to print to
tst)
Sreeji
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
Thread Previous