Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Why doesn't chmod work on this lexical filehandle?

by Anonyrnous Monk (Hermit)
on Feb 15, 2011 at 07:49 UTC ( #888148=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Why doesn't chmod work on this lexical filehandle?
in thread Why doesn't chmod work on this lexical filehandle?

Most likely, your Perl is too old.

From perldelta of 5.8.8:

  • chdir, chmod and chown can now work on filehandles as well as filenames, if the system supports respectively fchdir , fchmod and fchown , thanks to a patch provided by Gisle Aas.

See also Re^2: Why doesn't chmod work on this lexical filehandle?


Comment on Re^3: Why doesn't chmod work on this lexical filehandle?
Select or Download Code
Re^4: Why doesn't chmod work on this lexical filehandle?
by williff (Initiate) on Feb 15, 2011 at 15:23 UTC

    Yes! This is the problem. Our default perl at /usr/local/bin/perl is a symlink to 5.8. When i pointed to the latest version installed, which was 5.10.1, then the code works great. Thank you. And thanks to all Perl Monks sharing their wisdom and debug tips.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://888148]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2014-08-31 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls