Re: sorter script [was: Frustrated newbie question]

2003-12-10 Thread drieux
On Dec 9, 2003, at 4:20 PM, R. Joseph Newton wrote: [..] To me hashes are like sausage to a carnivore--I love the end product, but have no desire to look too closely at the process. [..] first the last, the schwartzian transformation I included was from the "perldoc -q sort" as a way of noting th

Re: sorter script [was: Frustrated newbie question]

2003-12-09 Thread R. Joseph Newton
drieux wrote: > Ironically, uh, duh, given tassilo's recent thumping > of me for whining about acadamia - there are some > ugly 'sorting algorithms' that have to be 'ugly' > to be 'general enough' that are, well, ugly. Hmmm. I don't know about that. Most sorting algorithms I have seen are quite

Re: sorter script [was: Frustrated newbie question]

2003-12-09 Thread drieux
On Dec 9, 2003, at 7:45 AM, Bryan Harris wrote: [..] Heck, why don't they just rewrite sort in perl if it's that much faster? since you asked... 8-) ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: sorter script [was: Frustrated newbie question]

2003-12-09 Thread Bryan Harris
> Bryan Harris wrote: >> Sometimes perl isn't quite the right tool for the job... % man sort % man uniq >>> >>> If you code it correctly (unlike the program at the URL above) then a >>> perl version will be more efficient and faster than using sort and uniq. >> >> Please e

Re: sorter script [was: Frustrated newbie question]

2003-12-09 Thread John W. Krahn
Bryan Harris wrote: > > >> Sometimes perl isn't quite the right tool for the job... > >> > >> % man sort > >> % man uniq > > > > If you code it correctly (unlike the program at the URL above) then a > > perl version will be more efficient and faster than using sort and uniq. > > Please explain...

Re: sorter script [was: Frustrated newbie question]

2003-12-09 Thread drieux
On Dec 8, 2003, at 9:30 PM, Bryan Harris wrote: [..] Sometimes perl isn't quite the right tool for the job... % man sort % man uniq If you code it correctly (unlike the program at the URL above) then a perl version will be more efficient and faster than using sort and uniq. Please explain... Tha

Re: sorter script [was: Frustrated newbie question]

2003-12-08 Thread Bryan Harris
My next Perl task after I get my list of one name per line, is to sort the list and eliminate duplicate names. >>> >>> I have used the following script to sort and remove duplicate entries in >>> flat >>> text files. >>> >>> http://www.downloaddatabase.com/databasesoftware/db-sorter-s

Re: sorter script [was: Frustrated newbie question]

2003-12-08 Thread John W. Krahn
Bryan Harris wrote: > > >> My next Perl task after I get my list of one name per line, is to sort the > >> list and eliminate duplicate names. > > > > I have used the following script to sort and remove duplicate entries in flat > > text files. > > > > http://www.downloaddatabase.com/databasesoftw

good example of top-posting problem [Was RE: sorter script [was: Frustrated newbie question]]

2003-12-08 Thread Kevin Pfeiffer
:32 PM > To: Beginners Perl > Subject: Re: sorter script [was: Frustrated newbie question] > > > > >>> My next Perl task after I get my list of one name per line, is to sort > the >>> list and eliminate duplicate names. >> >> I have used the

RE: sorter script [was: Frustrated newbie question]

2003-12-07 Thread Tom Kinzer
*Consciously* making the decision that your script will no longer be portable... my $2Cents; -Tom Kinzer -Original Message- From: Bryan Harris [mailto:[EMAIL PROTECTED] Sent: Sunday, December 07, 2003 5:32 PM To: Beginners Perl Subject: Re: sorter script [was: Frustrated newbie question

Re: sorter script [was: Frustrated newbie question]

2003-12-07 Thread stuart_clemons
PROTECTED]> Subject: Re: sorter script [was: Frustrated newbie question] On Dec 7, 2003, at 3:31 AM, John W. Krahn wrote: [..] >> >> http://www.downloaddatabase.com/databasesoftware/db-sorter-script.htm > > Why? more importantly, How? I have tried a couple of times to download i

Re: sorter script [was: Frustrated newbie question]

2003-12-07 Thread Bryan Harris
>> My next Perl task after I get my list of one name per line, is to sort the >> list and eliminate duplicate names. > > I have used the following script to sort and remove duplicate entries in flat > text files. > > http://www.downloaddatabase.com/databasesoftware/db-sorter-script.htm Someti

Re: sorter script [was: Frustrated newbie question]

2003-12-07 Thread drieux
On Dec 7, 2003, at 3:31 AM, John W. Krahn wrote: [..] http://www.downloaddatabase.com/databasesoftware/db-sorter-script.htm Why? more importantly, How? I have tried a couple of times to download it and get nothing. the retreat to the handy dandy GET -d -u -U -s -S -e http://www.downloaddatabase

Re: sorter script [was: Frustrated newbie question]

2003-12-07 Thread John W. Krahn
Saskia Van Der Elst wrote: > > On Friday 05 December 2003 10:53, [EMAIL PROTECTED] wrote: > > My next Perl task after I get my list of one name per line, is to sort the > > list and eliminate duplicate names. > > I have used the following script to sort and remove duplicate entries in flat > text

Re: Frustrated newbie question

2003-12-06 Thread Rob Dixon
Stuart Clemons wrote: > > Help. I'm a frustrated newbie who wants to use Perl to make my life easier. > > The following simple task is only one small part of a program I'm trying to > put together to automate some things I currently do manually. > > I have a file whose format looks like this: > > n

Re: Frustrated newbie question

2003-12-06 Thread Fred Nastos
On December 5, 2003 12:53 pm, [EMAIL PROTECTED] wrote: > Help. I'm a frustrated newbie who wants to use Perl to make my life easier. > > The following simple task is only one small part of a program I'm trying to > put together to automate some things I currently do manually. > > I have a file whos

Re: Frustrated newbie question

2003-12-05 Thread R. Joseph Newton
[EMAIL PROTECTED] wrote: > Help. I'm a frustrated newbie who wants to use Perl to make my life easier. > > The following simple task is only one small part of a program I'm trying to > put together to automate some things I currently do manually. > > I have a file whose format looks like this: > >

Re: Frustrated newbie question

2003-12-05 Thread drieux
On Dec 5, 2003, at 11:09 AM, [EMAIL PROTECTED] wrote: [..] You guys make it look so easy ! just think how weird you will be when your copy of Programming Perl 3rd Edition is the coffee stained collector's item right next to our copies of Programming Perl - the Pink Book - that was the first edition

re: Frustrated newbie question

2003-12-05 Thread stuart_clemons
Thanks to all with the quick responses and possible solutions for splitting my names list into one name per line. I've tried a couple of them and they work great. You guys make it look so easy ! Using an array with 'Split' seemed to be a key part of the solution. I guess I was sort of on th

RE: Frustrated newbie question

2003-12-05 Thread Roberts Mr Richard L
: Frustrated newbie question Stuart Clemons wrote: > > I have a file whose format looks like this: > > name1 name2 name3 > name4 name5 name6, etc. > > The names are separated by spaces. I need the names to be one name per > lin

Re: sorter script [was: Frustrated newbie question]

2003-12-05 Thread Saskia van der Elst
On Friday 05 December 2003 10:53, [EMAIL PROTECTED] wrote: > My next Perl task after I get my list of one name per line, is to sort the > list and eliminate duplicate names. I have used the following script to sort and remove duplicate entries in flat text files. http://www.downloaddatabase.com/

Re: Frustrated newbie question

2003-12-05 Thread david
Stuart Clemons wrote: > > I have a file whose format looks like this: > > name1 name2 name3 > name4 name5 name6, etc. > > The names are separated by spaces. I need the names to be one name per > line, like this: > > name1 > name2 > name3, etc. try: [pand

RE: Frustrated newbie question

2003-12-05 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: > Help. I'm a frustrated newbie who wants to use Perl to make my life > easier. > > The following simple task is only one small part of a program I'm > trying to put together to automate some things I currently do > manually. > > I have a file whose format looks like th

Re: Frustrated newbie question

2003-12-05 Thread drieux
On Dec 5, 2003, at 9:53 AM, [EMAIL PROTECTED] wrote: [..] I'm trying to put together to automate some things I currently do manually. I have a file whose format looks like this: name1 name2 name3 name4 name5 name6, etc. The names are separated by spaces. I nee

Re: Frustrated newbie question

2003-12-05 Thread Wiggins d Anconia
> > Help. I'm a frustrated newbie who wants to use Perl to make my life easier. > > The following simple task is only one small part of a program I'm trying to > put together to automate some things I currently do manually. > > I have a file whose format looks like this: > > name1 name

RE: Frustrated newbie question

2003-12-05 Thread Kipp, James
> I have a file whose format looks like this: > > name1 name2 name3 > name4 name5 name6, etc. > > The names are separated by spaces. I need the names to be > one name per > line, like this: > > name1 > name2 > name3, etc. > Here is one way: while (<>) {

RE: Frustrated newbie question

2003-12-05 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Help. I'm a frustrated newbie who wants to use Perl to make > my life easier. > > The following simple task is only one small part of a program > I'm trying to > put together to automate some things I currently do manually. > > I have a file whose format looks like this

RE: Frustrated newbie question

2003-12-05 Thread Chris Mortimore
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2003 11:54 AM To: [EMAIL PROTECTED] Subject: Frustrated newbie question Help. I'm a frustrated newbie who wants to use Perl to make my life easier. The following simple task is onl

Frustrated newbie question

2003-12-05 Thread stuart_clemons
Help. I'm a frustrated newbie who wants to use Perl to make my life easier. The following simple task is only one small part of a program I'm trying to put together to automate some things I currently do manually. I have a file whose format looks like this: name1 name2 name