Hello John,
Am 2008-06-06 11:06:09, schrieb John W. Krahn:
> $ perl -le'printf "%o\n", 33279'
> 100777
>
>
> 33279 is the decimal representation of a number, and 0777 is the octal
> representation of a number. If a number has a leading zero it is
> usually displayed in octal representation.
>
Gunwant Singh wrote:
Hi,
Hello,
Let me thank you for your help. I think you guys are doing a great work, its
really appreciative.
Thanks to David and John. Now that I changed my *"perl"* code to the
following, its actually working
*use strict;
use warnings;
use File::stat;
opendir (DH,
Michelle Konzack wrote:
Hello,
Hello,
I have a similar problem but with "mode" which output weird permissions:
[ '~/bin/.perl_test_001' ]--
#!/usr/bin/perl
use strict;
use warnings;
use File::stat;
opendir(DH, "/home/michelle.konzack/bin") || die
at
C:\Documents a
nd Settings\Myself\Desktop\code\dir-op.pl line 8.
What am I doing wrong!
Thanks.
--
Gunwant Singh
---
> -Original Message-
> From: Gunwant Singh [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04,
Wagner, David --- Senior Programmer Analyst --- WGO wrote:
From: Wagner, David --- Senior Programmer Analyst --- WGO
From: Gunwant Singh [mailto:[EMAIL PROTECTED]
9 print "$file\t$perm\n";
Then change print to
printf "$file %04o\n", $perm;
Better to do it this way:
Gunwant Singh wrote:
Hi,
Hello,
I am new to this mailing list and I am very new to PERL.
perldoc -q "What.s the difference between .perl. and .Perl.?"
So, please bear with me for my questions.
I wrote a code that lists files in a directory with the permissions. I am
coding for MS-Windows
> -Original Message-
> From: Wagner, David --- Senior Programmer Analyst --- WGO
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2008 11:08
> To: Gunwant Singh; beginners@perl.org
> Subject: RE: Reg. Directory listing program
>
> > -Original Mes
> -Original Message-
> From: Gunwant Singh [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2008 10:02
> To: beginners@perl.org
> Subject: Reg. Directory listing program
>
> Hi,
>
> I am new to this mailing list and I am very new to PERL. So,
>
Hi,
I am new to this mailing list and I am very new to PERL. So, please bear
with me for my questions.
I wrote a code that lists files in a directory with the permissions. I am
coding for MS-Windows.
Here is my code:
*1 use strict;
2 use warnings;
3 use File::stat();
4
5 opendir (DH, "subcode") o