Re: Can not get reliable output [WAS: Reg. Directory listing program]

2008-06-08 Thread Michelle Konzack
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. >

Re: Reg. Directory listing program

2008-06-06 Thread John W. Krahn
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,

Re: Can not get reliable output [WAS Reg. Directory listing program]

2008-06-06 Thread John W. Krahn
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

Reg. Directory listing program

2008-06-06 Thread Gunwant Singh
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,

Re: Reg. Directory listing program

2008-06-04 Thread John W. Krahn
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:

Re: Reg. Directory listing program

2008-06-04 Thread John W. Krahn
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

RE: Reg. Directory listing program

2008-06-04 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -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

RE: Reg. Directory listing program

2008-06-04 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -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, >

Reg. Directory listing program

2008-06-04 Thread Gunwant Singh
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