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
stat() on unopened filehandle _ #10002
Comments
From schmorp@schmorp.deCreated by schmorp@schmorp.deThis emits a warning: # perl -e 'use warnings; stat "/xyz"; stat _' however, the warning is wrong - stat _ should work exactly like the Perl Info
|
From @AbigailOn Wed, Dec 02, 2009 at 09:38:14AM -0800, schmorp@schmorp.de (via RT) wrote:
perldoc -f stat says that stat sets up the information associated Assuming "/xyz" doesn't exist on your system, I think the warning is Abigail |
The RT System itself - Status changed from 'new' to 'open' |
From schmorp@schmorp.deOn Thu, Dec 03, 2009 at 02:31:04PM +0100, Abigail <abigail@abigail.be> wrote:
Yes, but not the result of stat. The docs say: If "stat" is passed the special filehandle consisting of an The current contents are empty.
Well, it obviously happens even if the file is there (/etc exists on my # perl -e 'use warnings; stat "/etc"; stat "/xyz"; stat _' Note that if implemented the way you claim it should be, then it would not This bug is the reason why common::sense cannot enable the "unopened"
Well, the code is written to return the same thing as the last stat call, -- |
From @cpansproutFixed in commit daa30a6. |
@cpansprout - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#71002 (status was 'resolved')
Searchable as RT71002$
The text was updated successfully, but these errors were encountered: