Re: Perl equivalent to the unix 'cut' command

2004-10-14 Thread John W. Krahn
Dave Kettmann wrote: Howdy list, Hello, Subject speaks for itself.. Need to find a function or module to work like the 'cut' command. I have a file with multiple fields and i need to 'cut' out 2 of the fields. Looked thru CPAN for cut, but didnt find anything, Really? I found it right away. http:/

RE: Perl equivalent to the unix 'cut' command

2004-10-14 Thread Chris Devers
On Thu, 14 Oct 2004, Dave Kettmann wrote: > Each line is probably 80-100 characters in legnth, the files are about > 300Kb each (6 files total) working with 1GB of memory. Oh, that's it? I'm sure you'll be find then > Looking at these numbers, dont know that these are really that big of > a f

RE: Perl equivalent to the unix 'cut' command

2004-10-14 Thread Dave Kettmann
> On Thu, 14 Oct 2004, Dave Kettmann wrote: > > > The reply was deserved :) Just another question before I go too far > > with this... The files I am parsing (just needing 2 tabbed > fields out > > of them) are approximately 20,000 - 25,000 lines long a > piece. Each of > > these files will

RE: Perl equivalent to the unix 'cut' command

2004-10-14 Thread Chris Devers
On Thu, 14 Oct 2004, Dave Kettmann wrote: > The reply was deserved :) Just another question before I go too far > with this... The files I am parsing (just needing 2 tabbed fields out > of them) are approximately 20,000 - 25,000 lines long a piece. Each of > these files will be globbed into one

RE: Perl equivalent to the unix 'cut' command

2004-10-14 Thread Dave Kettmann
> -Original Message- > From: Chris Devers [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 14, 2004 4:16 PM > To: Perl List (E-mail) > Cc: Dave Kettmann > Subject: Re: Perl equivalent to the unix 'cut' command > > > On Thu, 14 Oct 2004, Chris Dev

Re: Perl equivalent to the unix 'cut' command

2004-10-14 Thread Chris Devers
On Thu, 14 Oct 2004, Chris Devers wrote: > On Thu, 14 Oct 2004, Dave Kettmann wrote: > > > Subject speaks for itself.. > > Okay then. > > perldoc -f split > > Also speaks for itself :-) To be less snarky, you probably need to open up your file, iterate over it line by line, using split

Re: Perl equivalent to the unix 'cut' command

2004-10-14 Thread Chris Devers
On Thu, 14 Oct 2004, Dave Kettmann wrote: > Subject speaks for itself.. Okay then. perldoc -f split Also speaks for itself :-) -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]