From geeksatlarge at yahoo.com Sun May 4 14:40:16 2003 From: geeksatlarge at yahoo.com (Ron Smith) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] Numbering files Message-ID: <20030504194016.87605.qmail@web20705.mail.yahoo.com> I have a group of files in a directory as follows: file.1 file.10 file.11 file.12 file.13 file.14 file.15 file.2 file.3 file.4 file.5 file.6 file.7 file.8 file.9 How would I go about adding a leadin '0' to the files numbered 1-9 to make the files list in order like the following: file.01 file.02 file.03 file.04 file.05 file.06 file.07 file.08 file.09 file.10 file.11 file.12 file.13 file.14 file.15 I tried the following: ------------snip------------------- #!/usr/bin/perl -w use strict; my @nums = (1..9); foreach my $file (glob "file*") { my $newfile = sprintf "file.%02d", @nums; rename "$file", "$newfile"; } ------------snip------------------- But, I'm only getting only one file named 'file.01' as the result. What am I doing wrong? Ron --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/losangeles-pm/attachments/20030504/deee50d6/attachment.htm From clay at panix.com Sun May 4 15:02:41 2003 From: clay at panix.com (Clay Irving) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] Numbering files In-Reply-To: <20030504194016.87605.qmail@web20705.mail.yahoo.com> References: <20030504194016.87605.qmail@web20705.mail.yahoo.com> Message-ID: <20030504200241.GA5361@panix.com> On Sun, May 04, 2003 at 12:40:16PM -0700, Ron Smith wrote: > I have a group of files in a directory as follows: > > file.1 > file.10 > file.11 > file.12 > file.13 > file.14 > file.15 > file.2 > file.3 > file.4 > file.5 > file.6 > file.7 > file.8 > file.9 > > How would I go about adding a leadin '0' to the files numbered 1-9 to > make the files list in order like the following: > > > file.01 > file.02 > file.03 > file.04 > file.05 > file.06 > file.07 > file.08 > file.09 > file.10 > file.11 > file.12 > file.13 > file.14 > file.15 There are many ways. Here's one: #!/usr/local/bin/perl5.6.1 while () { chomp; ($name, $ext) = split /\./; # Split on the . if ($ext < 10) { # If the file extension # is less than 10 $ext = "0$ext"; # Add a leading 0 } push @files, "$name.$ext"; # Push into an array } @sorted_files = sort { uc($a) cmp uc($b) } @files; # Sort the array for(@sorted_files) { # Print print "$_\n"; } __DATA__ file.1 file.10 file.11 file.12 file.13 file.14 file.15 file.2 file.3 file.4 file.5 file.6 file.7 file.8 file.9 Result: file.01 file.02 file.03 file.04 file.05 file.06 file.07 file.08 file.09 file.10 file.11 file.12 file.13 file.14 file.15 -- Clay Irving I want to die peacefully, in my sleep, like my grandfather, not screaming, terrified, like his passengers. From ehammond at thinksome.com Mon May 5 16:12:14 2003 From: ehammond at thinksome.com (Eric Hammond) Date: Mon Aug 2 21:31:54 2004 Subject: [lapm] [LA.pm] Numbering files In-Reply-To: <20030504194016.87605.qmail@web20705.mail.yahoo.com> References: <20030504194016.87605.qmail@web20705.mail.yahoo.com> Message-ID: <20030505211214.GA25302@brog> Ron Smith wrote: > How would I go about adding a leadin '0' to the files numbered 1-9 > to make the files list in order like the following: Assuming you are using bash or an equivalent sh derivative, you don't need Perl: for i in 1 2 3 4 5 6 7 8 9; do mv file.$i file.0$i; done If you really want to use Perl: perl -e 'rename "file.$_", "file.0$_" for 1..9' Or is the problem really more complicated than what you presented? -- Eric Hammond ehammond@thinksome.com From rspier at pobox.com Mon May 12 00:39:11 2003 From: rspier at pobox.com (Robert Spier) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] silence Message-ID: I feel like I should make a post.. The list has been very quiet, and there have been a few new subscribers recently. -R From darkuncle at darkuncle.net Mon May 12 10:28:46 2003 From: darkuncle at darkuncle.net (Scott Francis) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] silence In-Reply-To: References: Message-ID: <20030512152846.GM8577@darkuncle.net> On Sun, May 11, 2003 at 10:39:11PM -0700, rspier@pobox.com said: > > I feel like I should make a post.. The list has been very quiet, and > there have been a few new subscribers recently. Welcome to LA (or just to the list, or both), you new subscribers. :) This group gets together periodically to eat and chat about Perl, networks, systems and whatever else piques our interests. I'm thinking it might be especially cool to get together later this month, after the initial rush dies off a bit, and go as a group to see The Matrix Reloaded. :) Thoughts? -- Scott Francis || darkuncle (at) darkuncle (dot) net illum oportet crescere me autem minui -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://mail.pm.org/pipermail/losangeles-pm/attachments/20030512/dda5a482/attachment.bin From gstark at electrorent.com Mon May 12 10:45:30 2003 From: gstark at electrorent.com (Greg Stark) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] RE LOAD In-Reply-To: <20030512152846.GM8577@darkuncle.net> Message-ID: <001101c3189d$8419eed0$8506800a@cp1.electrorent.com> after the initial rush dies off... You must be joking. Opening weekend it will be booked. This time there's enough distribution. You could go the following Monday-Tuesday 5-7PM and the theaters are empty. G Stark > -----Original Message----- > From: losangeles-pm-admin@mail.pm.org > [mailto:losangeles-pm-admin@mail.pm.org]On Behalf Of Scott Francis > Sent: Monday, May 12, 2003 8:29 AM > To: Robert Spier > Cc: losangeles-pm@mail.pm.org > Subject: Re: [LA.pm] silence > > > On Sun, May 11, 2003 at 10:39:11PM -0700, rspier@pobox.com said: > > > > I feel like I should make a post.. The list has been very quiet, and > > there have been a few new subscribers recently. > > Welcome to LA (or just to the list, or both), you new subscribers. :) This > group gets together periodically to eat and chat about Perl, networks, > systems and whatever else piques our interests. > > I'm thinking it might be especially cool to get together later this month, > after the initial rush dies off a bit, and go as a group to see The Matrix > Reloaded. :) > > Thoughts? > -- > Scott Francis || darkuncle (at) darkuncle (dot) net > illum oportet crescere me autem minui > From gstark at electrorent.com Mon May 12 10:48:19 2003 From: gstark at electrorent.com (Greg Stark) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] RE LOAD In-Reply-To: <20030512152846.GM8577@darkuncle.net> Message-ID: <001601c3189d$e8e527d0$8506800a@cp1.electrorent.com> At least the three Burbank AMC theaters are generally empty to 50% on those days. G Stark From ask at develooper.com Mon May 12 13:58:17 2003 From: ask at develooper.com (Ask Bjoern Hansen) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] RE LOAD In-Reply-To: <001101c3189d$8419eed0$8506800a@cp1.electrorent.com> Message-ID: On Monday, May 12, 2003, at 08:45 America/Los_Angeles, Greg Stark wrote: Hmn, In some companies (okay, in one company anyway) Thursday afternoon will be company sponsored movie trip... :-) - ask -- http://www.askbjoernhansen.com/ From darkuncle at darkuncle.net Mon May 12 14:07:04 2003 From: darkuncle at darkuncle.net (Scott Francis) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] RE LOAD In-Reply-To: References: <001101c3189d$8419eed0$8506800a@cp1.electrorent.com> Message-ID: <20030512190704.GO8577@darkuncle.net> On Mon, May 12, 2003 at 11:58:17AM -0700, ask@develooper.com said: > > On Monday, May 12, 2003, at 08:45 America/Los_Angeles, Greg Stark wrote: > > Hmn, > > In some companies (okay, in one company anyway) Thursday afternoon will > be company sponsored movie trip... *nod* more than one company. :) however, I personally intend to see this movie any number of times. I am hoping to get LA.pm together to go with me one of those times. -- Scott Francis || darkuncle (at) darkuncle (dot) net illum oportet crescere me autem minui -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://mail.pm.org/pipermail/losangeles-pm/attachments/20030512/d41425b4/attachment.bin From dgwilson1 at cox.net Sun May 11 19:10:12 2003 From: dgwilson1 at cox.net (Douglas Wilson) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] Meet up w/tilly Message-ID: <000901c3181a$dc9870a0$e93a0544@oc.cox.net> This is just to announce an informal gathering that I'm trying to organize to meet up with a perler thats coming through the area. Ben Tilly (http://www.perlmonks.org/index.pl?node_id=26179) will be around the week of June 20th, and since I'm in OC, and there'll be at least one person coming from SD (that's San Diego, not San Dimas :-), I thought a good central location would be Santa Ana, at The Olde Ship (see theoldeship.com). Ben was the subject of a /. article (http://slashdot.org/article.pl?sid=02/03/21/0139244&mode=thread) and has worked on some core perl modules, including Exporter, though this meeting is purely social w/no presentations (unless someone volunteers ;-) I know its a drive for most of you, but come on down if you can make it. The date is tentatively Wednesday, June 18th, at 7pm (I'll consider pushing it later if it makes life easier for anyone). Let me know if you think you might come, so I'll know if its worthwhile to make reservations. I'm also posting this on the OC and SD mailing lists, so it could be sort of a tri-regional monger meeting (SoCal.pm). I'll post reminders and updates as it gets closer. Thanks for listening... From xiangqi2002 at hotmail.com Wed May 14 12:12:26 2003 From: xiangqi2002 at hotmail.com (xiang qi) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] RE LOAD Message-ID: Yeah, more than two companies. But I have been wondering what is so unique about Matrix? Isn't it just yet another hk styled action with bunch of American cast? Major sudos to Yuen woo-ping on the choreography, but he made plenty of HK movies which I think are even more "passionate". >From: Scott Francis >To: Ask Bjoern Hansen >CC: losangeles-pm@mail.pm.org >Subject: Re: [LA.pm] RE LOAD >Date: Mon, 12 May 2003 12:07:04 -0700 > >On Mon, May 12, 2003 at 11:58:17AM -0700, ask@develooper.com said: > > > > On Monday, May 12, 2003, at 08:45 America/Los_Angeles, Greg Stark wrote: > > > > Hmn, > > > > In some companies (okay, in one company anyway) Thursday afternoon will > > be company sponsored movie trip... > >*nod* more than one company. :) > >however, I personally intend to see this movie any number of times. I am >hoping to get LA.pm together to go with me one of those times. >-- >Scott Francis || darkuncle (at) darkuncle (dot) net > illum oportet crescere me autem minui ><< attach3 >> _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From xiangqi2002 at hotmail.com Wed May 14 12:12:27 2003 From: xiangqi2002 at hotmail.com (xiang qi) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] RE LOAD Message-ID: Yeah, more than two companies. But I have been wondering what is so unique about Matrix? Isn't it just yet another hk styled action with bunch of American cast? Major sudos to Yuen woo-ping on the choreography, but he made plenty of HK movies which I think are even more "passionate". >From: Scott Francis >To: Ask Bjoern Hansen >CC: losangeles-pm@mail.pm.org >Subject: Re: [LA.pm] RE LOAD >Date: Mon, 12 May 2003 12:07:04 -0700 > >On Mon, May 12, 2003 at 11:58:17AM -0700, ask@develooper.com said: > > > > On Monday, May 12, 2003, at 08:45 America/Los_Angeles, Greg Stark wrote: > > > > Hmn, > > > > In some companies (okay, in one company anyway) Thursday afternoon will > > be company sponsored movie trip... > >*nod* more than one company. :) > >however, I personally intend to see this movie any number of times. I am >hoping to get LA.pm together to go with me one of those times. >-- >Scott Francis || darkuncle (at) darkuncle (dot) net > illum oportet crescere me autem minui ><< attach3 >> _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From darkuncle at darkuncle.net Wed May 14 12:19:47 2003 From: darkuncle at darkuncle.net (Scott Francis) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] RE LOAD In-Reply-To: References: Message-ID: <20030514171947.GN8577@darkuncle.net> On Wed, May 14, 2003 at 05:12:26PM +0000, xiangqi2002@hotmail.com said: > > Yeah, more than two companies. > > But I have been wondering what is so unique about Matrix? Isn't it just > yet another hk styled action with bunch of American cast? Major sudos to > Yuen woo-ping on the choreography, but he made plenty of HK movies which I > think are even more "passionate". You apparently haven't seen the first Matrix film. Go see it, and you will see what is different about it. (Hint: FX, choreography, philosophy). -- Scott Francis || darkuncle (at) darkuncle (dot) net illum oportet crescere me autem minui -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://mail.pm.org/pipermail/losangeles-pm/attachments/20030514/64b90503/attachment.bin From xiangqi2002 at hotmail.com Wed May 14 12:37:19 2003 From: xiangqi2002 at hotmail.com (xiang qi) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] RE LOAD Message-ID: I did. On the other hand, it is very highly you have not watched many HK films? I do like Matrix's philosophy, but I feel it attracted so many people mostly because of its choreography, and those, are repeatedly appeared in HK films. Yuen's work is great but no breakingthroughs [yet]. >From: Scott Francis >To: xiang qi >CC: losangeles-pm@mail.pm.org >Subject: Re: [LA.pm] RE LOAD >Date: Wed, 14 May 2003 10:19:47 -0700 > >On Wed, May 14, 2003 at 05:12:26PM +0000, xiangqi2002@hotmail.com said: > > > > Yeah, more than two companies. > > > > But I have been wondering what is so unique about Matrix? Isn't it just > > yet another hk styled action with bunch of American cast? Major sudos to > > Yuen woo-ping on the choreography, but he made plenty of HK movies which >I > > think are even more "passionate". > >You apparently haven't seen the first Matrix film. Go see it, and you will >see what is different about it. (Hint: FX, choreography, philosophy). >-- >Scott Francis || darkuncle (at) darkuncle (dot) net > illum oportet crescere me autem minui ><< attach3 >> _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From darkuncle at darkuncle.net Wed May 14 14:35:18 2003 From: darkuncle at darkuncle.net (Scott Francis) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] RE LOAD In-Reply-To: References: Message-ID: <20030514193518.GR8577@darkuncle.net> On Wed, May 14, 2003 at 05:37:19PM +0000, xiangqi2002@hotmail.com said: > I did. On the other hand, it is very highly you have not watched many HK > films? On the contrary, John Woo is one of my favorite directors. :) > I do like Matrix's philosophy, but I feel it attracted so many people > mostly because of its > choreography, and those, are repeatedly appeared in HK films. Yuen's work > is great but no breakingthroughs [yet]. The story was unique (philosophy) at least among most non-anime films I have seen. Also, a number of the FX used in the film (bullet time, etc.) had not been seen in a live-action film before, to my knowledge. I think the attraction is the combination of story, action, FX and that hard-to-define "cool factor". :) -- Scott Francis || darkuncle (at) darkuncle (dot) net illum oportet crescere me autem minui -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://mail.pm.org/pipermail/losangeles-pm/attachments/20030514/046a13d3/attachment.bin From batte55 at earthlink.net Wed May 14 09:02:48 2003 From: batte55 at earthlink.net (Steve Batte) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] RE LOAD Already Message-ID: <200305141402.48186.batte55@earthlink.net> Okay, so enough of the Ebert and Roeper act -- when are we going to go see the damn film?? Burbank is fine with me, except is only there for the weekend, according to moviefone.com. Gone by Monday, we'll have to go to Glendale then. How about Pasadena, Thursday the 22nd. It's playing at the Pacific Paseo Stadium 14 like every 20 minutes in the evening and the AMC Theatres Old Pasadena 8 at | 6:40pm | 7:10pm | 9:45pm | 10:15pm. Anybody know which theatre is better, or where to get a brew or 2 before?? From darkuncle at darkuncle.net Wed May 14 16:16:28 2003 From: darkuncle at darkuncle.net (Scott Francis) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] RE LOAD Already In-Reply-To: <200305141402.48186.batte55@earthlink.net> References: <200305141402.48186.batte55@earthlink.net> Message-ID: <20030514211628.GV8577@darkuncle.net> On Wed, May 14, 2003 at 02:02:48PM +0000, batte55@earthlink.net said: > Okay, so enough of the Ebert and Roeper act -- when are we going to go see the > damn film?? > > Burbank is fine with me, except is only there for the weekend, according to > moviefone.com. Gone by Monday, we'll have to go to Glendale then. moviefone is on crack. The theaters will carry a film of this caliber until people stop paying to see it. :) I say it'll be on most screens at least 3 weeks. I'll be out of town until next Tuesday, but if we want to go after that, I'd love to. > How about Pasadena, Thursday the 22nd. It's playing at the Pacific Paseo > Stadium 14 like every 20 minutes in the evening and the AMC Theatres Old > Pasadena 8 at | 6:40pm | 7:10pm | 9:45pm | 10:15pm. works for me (location and time both). > Anybody know which theatre is better, or where to get a brew or 2 before?? lots of stuff in Old Town Pasadena (nice area to just hang out or get a bite/brew/espresso) ... -- Scott Francis || darkuncle (at) darkuncle (dot) net illum oportet crescere me autem minui -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://mail.pm.org/pipermail/losangeles-pm/attachments/20030514/45e911de/attachment.bin From ehammond at thinksome.com Wed May 14 17:26:38 2003 From: ehammond at thinksome.com (Eric Hammond) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] RE LOAD Already In-Reply-To: <20030514211628.GV8577@darkuncle.net> References: <200305141402.48186.batte55@earthlink.net> <20030514211628.GV8577@darkuncle.net> Message-ID: <20030514222638.GB8486@brog> My company is paying for a movie outing on Friday afternoon at The Bridge (best theater near Santa Monica) but I would probably be interested in seeing it again. Scott Francis wrote: > lots of stuff in Old Town Pasadena (nice area to just hang out or > get a bite/brew/espresso) ... I put the Old Town Pasadena theaters on my blacklist and have not been there in a number of years. I would avoid them unless somebody can confirm that they have been brought up to modern theater standards very recently--probably hard to do with the underground AMC there since the screens are so tiny. I think Pacific Paseo Stadium 14 is modern and has some good screens. It's not in Old Pasadena, but it is at the Paseo which is an ok hangout. My favorite theater in the San Gabriel valley is the Krikorian Monrovia Cinema 12 in Old Town Monrovia. If Matrix Reloaded is showing on their LFX (Large Format Experience) screen, you'll have to try it out. -- Eric Hammond ehammond@thinksome.com From darkuncle at darkuncle.net Wed May 14 17:44:26 2003 From: darkuncle at darkuncle.net (Scott Francis) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] RE LOAD Already In-Reply-To: <20030514222638.GB8486@brog> References: <200305141402.48186.batte55@earthlink.net> <20030514211628.GV8577@darkuncle.net> <20030514222638.GB8486@brog> Message-ID: <20030514224426.GZ8577@darkuncle.net> On Wed, May 14, 2003 at 03:26:38PM -0700, ehammond@thinksome.com said: > > My company is paying for a movie outing on Friday afternoon at The > Bridge (best theater near Santa Monica) but I would probably be > interested in seeing it again. I'm gonna see it at least 5 or 6 times, I'm sure. :) > Scott Francis wrote: > > lots of stuff in Old Town Pasadena (nice area to just hang out or > > get a bite/brew/espresso) ... > > I put the Old Town Pasadena theaters on my blacklist and have not > been there in a number of years. I would avoid them unless somebody > can confirm that they have been brought up to modern theater standards > very recently--probably hard to do with the underground AMC there > since the screens are so tiny. I don't recall them being substandard the last time I was there, but that was probably about a year ago. > I think Pacific Paseo Stadium 14 is modern and has some good screens. > It's not in Old Pasadena, but it is at the Paseo which is an ok > hangout. close enough - the Paseo screens are very nice; I go see movies there on a regular basis. it's walking distance of Old Town too. > My favorite theater in the San Gabriel valley is the Krikorian > Monrovia Cinema 12 in Old Town Monrovia. If Matrix Reloaded is > showing on their LFX (Large Format Experience) screen, you'll have > to try it out. Oh yeah, the Krikorian is very nice. :) (actually going to see Reloaded there on Thursday afternoon ... dunno if it's LFX or not, I'm buying tickets tonight.) -- Scott Francis || darkuncle (at) darkuncle (dot) net illum oportet crescere me autem minui -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://mail.pm.org/pipermail/losangeles-pm/attachments/20030514/71373a95/attachment.bin From rspier at pobox.com Wed May 14 22:01:46 2003 From: rspier at pobox.com (Robert Spier) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] silence In-Reply-To: References: Message-ID: Robert Spier wrote: > I feel like I should make a post.. The list has been very quiet, and > there have been a few new subscribers recently. It's funny. The little burst of activity this week seems to have made some[1] people decide to leave the list. :) -R Footnotes: [1] Two. From rdbenjamin at earthlink.net Mon May 19 21:36:20 2003 From: rdbenjamin at earthlink.net (Bob Benjamin) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] conversion from Framemaker to MS Word Message-ID: I've got about twenty 1 to 2 page documents in Framemaker that I'd like to convert to MS Word. Any suggestions? Bob Benjamin From geeksatlarge at yahoo.com Tue May 20 22:39:46 2003 From: geeksatlarge at yahoo.com (Ron Smith) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] Command line loops? Message-ID: <20030521033946.28117.qmail@web20711.mail.yahoo.com> Is there a Perl way to do a command line loop that reaches down recursively into directories and 'greps' out certain files of the same type? TIA Ron --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/losangeles-pm/attachments/20030520/860a4309/attachment.htm From jleader at alumni.caltech.edu Tue May 20 23:43:25 2003 From: jleader at alumni.caltech.edu (Jeremy Leader) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] Command line loops? In-Reply-To: <20030521033946.28117.qmail@web20711.mail.yahoo.com> Message-ID: <4.2.2.20030520212958.00ccc540@mail.altrionet.com> There's more than one way to do it... On Unix-like systems, try the "find" command, which recursively searches a directory tree for files matching specifications you give it (which can include size, type, timestamp, name, etc.) and executes commands you specify on them (including listing their names). That's what I usually use. You could also write Perl code using the opendir and readdir to read directories yourself. Or you could use the DirHandle package, which is an OO wrapper for opendir/readdir/etc. Or you could use the File::Find package, which is a Perl version of the find command. You pass it a list of starting directories, specify how it should search (breadth first or depth first), and lots of options about what to search for, including a subroutine to call for each file it finds. Hope one of those is what you're looking for. Jeremy Leader At 08:39 PM 5/20/03 , Ron Smith wrote: >Is there a Perl way to do a command line loop that reaches down >recursively into directories and 'greps' out certain files of the same type? > >TIA >Ron > > > >Do you Yahoo!? >The New Yahoo! Search - Faster. Easier. Bingo. From dgwilson at gtemail.net Wed May 21 18:55:25 2003 From: dgwilson at gtemail.net (Douglas Wilson) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] Command line loops? Message-ID: <20030521235525.17456.qmail@verizonmail.com> > From: Ron Smith >Is there a Perl way to do a command line > loop that reaches down recursively into directories > and 'greps' out certain files of the same type? If by 'type' you mean 'extension', then you can use File::Find, or the handy File::Find::Rule use File::Find::Rule; my @files = File::Find::Rule->file->name('*.txt')->in("/some/directory"); -- _______________________________________________ Get your free Verizonmail at www.verizonmail.com From rspier at pobox.com Wed May 21 20:11:35 2003 From: rspier at pobox.com (Robert Spier) Date: Mon Aug 2 21:31:54 2004 Subject: [LA.pm] OSCON Early Bird deadline Message-ID: FYI. > The Early Bird deadline for OSCON expire on May 23. In some past > conferences, we've scrabbled for attendees and extended the > "deadline". That isn't going to happen this time--come May 24, the > baseline price goes up. If you know people who are taking the Early > Bird deadline lightly, figuring they'll still be able to get the > discount next month, please disillusion them.