in reply to File::stat question

$inetmode = stat("/etc/inetd.conf"); printf "%o\n", $inetmode->mode & 0777;
Octal, my son. Octal.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: File::stat question
by liquidc00l (Novice) on Feb 13, 2002 at 20:59 UTC
    Thanks that worked great, but.... I am almost embarrassed to ask this.....how do I write that value to a variable ... I am sure that this is very obvious but not to the newbie. TIA, Brett