Re: Extracting Directories and Sub Directories and Counting

2004-11-03 Thread Ron Smith
--- Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Ron Smith wrote: > > If I wanted to add more fields to my output, which > construct would I > > use to create more fields; something like the > following? > > > > basenamecountextensionsize > > > > ...maybe 'HoH', or just expand on

Re: Extracting Directories and Sub Directories and Counting

2004-11-02 Thread Gunnar Hjalmarsson
Ron Smith wrote: Gunnar Hjalmarsson wrote: You multi-posted basically the same question to comp.lang.perl.misc (see below). Any comments on that, Ron? Pardon me Gunnar, etal, I'm new and thought that the 'comp.lang.perl.misc' post was entirely separate from '[EMAIL PROTECTED]', reaching an entirely

Re: Extracting Directories and Sub Directories and Counting

2004-11-02 Thread Gunnar Hjalmarsson
Ron Smith wrote: Gunnar Hjalmarsson wrote: You multi-posted basically the same question to comp.lang.perl.misc (see below). Any comments on that, Ron? Pardon me Gunnar, etal, I'm new and thought that the 'comp.lang.perl.misc' post was entirely separate from '[EMAIL PROTECTED]', reaching an entirely

Re: Extracting Directories and Sub Directories and Counting

2004-11-02 Thread Chris Devers
On Tue, 2 Nov 2004, Ron Smith wrote: > I'm new and thought that the 'comp.lang.perl.misc' post was entirely > separate from '[EMAIL PROTECTED]', reaching an entirely different > audience. I eanestly appologize to everyone on both lists. It's a separate list, but a lot of the same people read bo

Re: Extracting Directories and Sub Directories and Counting

2004-11-02 Thread Ron Smith
..maybe 'HoH', or just expand on the 'HoA? You multi-posted basically the same question to comp.lang.perl.misc (see below). Any comments on that, Ron? -------- Original Message Subject: Re: Extracting Directories and Sub Directories and Counting Date: Tue, 02 Nov 2004 13:40:2

Re: Extracting Directories and Sub Directories and Counting

2004-11-02 Thread Gunnar Hjalmarsson
.perl.misc (see below). Any comments on that, Ron? Original Message ---- Subject: Re: Extracting Directories and Sub Directories and Counting Date: Tue, 02 Nov 2004 13:40:21 +0100 From: Gunnar Hjalmarsson <[EMAIL PROTECTED]> Newsgroups: comp.lang.perl.misc References: <[EMA

Re: Extracting Directories and Sub Directories and Counting

2004-11-02 Thread Gunnar Hjalmarsson
Ron Smith wrote: If I wanted to add more fields to my output, which construct would I use to create more fields; something like the following? basenamecountextensionsize ...maybe 'HoH', or just expand on the 'HoA? I suppose that you are not really talking about the output now, but rathe

Re: Extracting Directories and Sub Directories and Counting

2004-11-01 Thread Ron Smith
Hey Gunnar, and list, ---snip print "\n"; my %HoA; for ( `dir /b/s` ) { push @{ $HoA{$1} }, $2 if /(.+)\\(\w+)\.\d+\.\w+$/; } for my $dir ( sort keys %HoA ) { print join ( "\n", $dir ), "\n\n"; my @basenames = @{ $HoA{$d

Re: Extracting Directories and Sub Directories and Counting

2004-10-29 Thread Gunnar Hjalmarsson
Gunnar Hjalmarsson wrote: for my $dir ( sort keys %HoA ) { print "$dir\n"; my @basenames = @{ $HoA{$dir} }; my %count; for my $frames ( @basenames ) { $count{$frames} += 1; } for ( sort keys %count ) { printf "%30s\t%04d\n"

Re: Extracting Directories and Sub Directories and Counting

2004-10-29 Thread Gunnar Hjalmarsson
Ron Smith wrote: The following is the re-worked script: snip- #!/usr/bin/perl -w use strict; my %HoA; for ( `dir /b/s` ) { push @{ $HoA{$1} }, $2 if /(.+)\\(\w+)\.(\d+)\.(\w+)$/; } The two last pairs of parentheses are redundant. my %count; for my $dir (

Re: Extracting Directories and Sub Directories and Counting

2004-10-29 Thread Ron Smith
Well I've moved this along a little further, but it looks like I'm stuck on one last thing. I'm getting; C:\Perl\scripts\dir\dir\dir basename 0001 basename 0002 basename 0003 basename 0004

Re: Extracting Directories and Sub Directories and Counting// LÖSCHEN von WALLBANGER@t-online.de als" PERLER "!!!!!

2004-10-28 Thread sonja
r schon TOD !! mit lieben Gruß Sonjaseine Frau! - Original Message - From: "Gunnar Hjalmarsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 29, 2004 1:19 AM Subject: Re: Extracting Directories and Sub Directories and Counting &

Re: Extracting Directories and Sub Directories and Counting

2004-10-28 Thread Gunnar Hjalmarsson
[ replying to the list since that's where the discussion belongs ] Ron Smith wrote (to me privately): Thank you *very* much for furthering my 'Perl' knowlege. I've never see a variable like '@{ $HoA{$dir} }' before. Well, it's not a special variable type. $HoA{$dir} is a reference to an anonymous