New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*FILE{IO} does not behave like *FILE for stat() and -X() operators #4837
Comments
From @jlokierCreated by @jlokierI use the following code to generate file handles, as per the perlref manpage: local *FILE; For the most part, this has the same effect as returning *FILE, and Although this works fine with functions like `read', `write', `sysread' Specifically, when one of these *FILE{IO} references is used in the file On the other hand, when a typeglob *FILE is used in a file test Is this a code discrepancy or something that should be documented in the Cheers, Perl Info
|
From @smpetersOn Tue Jan 15 00:10:56 2002, jamie wrote:
Sorry about not responding to this earlier. This problem has been fixed |
@smpeters - Status changed from 'open' to 'resolved' |
From @doughera88On Thu, 27 Jul 2006, Steve Peters via RT wrote:
Thanks (and sorry to bother the original poster with yet another the last clause can end up doing a 'goto do_fstat_warning_check' without The following test script (stripped down from t/op/stat.t) illustrates the #!./perl ok(open(F, ">", $tmpfile), 'can create temp file'); END { -- |
From @rgsAndrew Dougherty wrote:
Not seeing an obvious way to get more useful information, I've for now - "lstat() on filehandle %s", GvENAME(gv)); |
From @cpansproutOn Thu Jul 27 17:43:43 2006, stmpeters wrote:
Except that change missed -t, -T and -B. So I’m reopening it. Is this something we can fix for 5.16? Is it possible that someone is Also, that commits causes lstat(*$fh{IO}) to do the same thing as -- Father Chrysostomos |
@cpansprout - Status changed from 'resolved' to 'open' |
From @cpansproutOn Thu Aug 10 02:48:16 2006, rgarciasuarez@mandriva.com wrote:
That leaves a double space before ‘at’: lstat() on filehandle at -e line 1. I’ve just fixed that in commit 93fad93. -- Father Chrysostomos |
From @cpansproutOn Fri Jan 13 22:38:26 2012, sprout wrote:
It’s actually documented to do an fstat in perldiag. So I’ve changed it -t, -T and -B still do not accept iorefs. I haven’t changed that (yet). -- Father Chrysostomos |
Migrated from rt.perl.org#8244 (status was 'open')
Searchable as RT8244$
The text was updated successfully, but these errors were encountered: