in reply to Convert ls listing of -rwxr-xr-x into mode for stat

Have you looked at Stat::lsMode (alt.)?

It's aimed more towards the inverse of what you're doing, but there's an undocumented function called lsmode that might be of interest...

    --k.


  • Comment on Re: Convert ls listing of -rwxr-xr-x into mode for stat