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
-l treats globref as filename #16248
Comments
From zefram@fysh.orgCreated by zefram@fysh.orgThe -l file test operation is not valid to perform on a file handle, $ strace -qqelstat perl -lwe 'print -l STDIN // "undef"' But if we try to apply it to a file handle the *other* way, the behaviour $ strace -qqelstat perl -lwe 'print -l \*STDIN // "undef"' The warning claims that the argument is still being treated as a file $ strace -qqelstat perl -lwe 'symlink "z", \*STDIN or die $!; print -l \*STDIN // "undef"' The documentation doesn't mention -l being any different in its Perl Info
|
From blgl@stacken.kth.seQuoth Zefram:
False. Darwin has the O_SYMLINK mode which lets you do exactly that. { my $fn = "/etc/localtime"; /Bo Lindbergh |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#132449 (status was 'open')
Searchable as RT132449$
The text was updated successfully, but these errors were encountered: