Re: shifting through arrays of line data

2003-03-04 Thread Deb
John W. Krahn <[EMAIL PROTECTED]> had this to say, > Ok, here it is using the code you posted elsethread. Much more elegant than mine, but by looking at the output, it's still not quite right. Note that there really is no -m option. > After running it I get this output: > > direct >

Re: shifting through arrays of line data

2003-03-04 Thread John W. Krahn
Deb wrote: > > John wrote: > > Did you try the code I posted Friday? (Message-ID: <[EMAIL PROTECTED]>) > > Thanks, yes, I did. But, the syntax was new to me, and I've been reading > up on it. I couldn't really get it to do what I want (see my previous > post to this one). But, that's probably

Re: STILL shifting through arrays of line data

2003-03-04 Thread Rob Dixon
Hi Deb. Let me put you out of your misery. It's a shame because you were s close! Deb wrote: > > Here's the modified script. I made some changes, as suggested, but > there > was no change in the output. I've included my entire script. My > head is getting mighty flat from banging it against

Re: STILL shifting through arrays of line data

2003-03-04 Thread Sudarshan Raghavan
On Tue, 4 Mar 2003, Sudarshan Raghavan wrote: > The problem is with the last \s+, when you are parsing the final tuple > $rest contains this '-h ten-me-900'. Due to the final \s+ the above regex > will not match. This leaves $opt, $arg and $newRest as undefined. Change > the final \s+ to \s* an

Re: STILL shifting through arrays of line data

2003-03-04 Thread Sudarshan Raghavan
On Mon, 3 Mar 2003, Deb wrote: > Here's the modified script. I made some changes, as suggested, but there > was no change in the output. I've included my entire script. My head is > getting mighty flat from banging it against the wall. Oh, and I added "use > warnings;" and I haven't got a clu

Re: STILL shifting through arrays of line data

2003-03-03 Thread Deb
Sudarshan Raghavan <[EMAIL PROTECTED]> had this to say, > > Did you look at the code that I posted at the end of my last mail? I'm so embarrassed! I totally missed it! Wow. This is just what I'm looking for. I'm going to try it out - but it will have to wait until morning (it's 2315 here, a

Re: STILL shifting through arrays of line data

2003-03-03 Thread Sudarshan Raghavan
On Mon, 3 Mar 2003, Deb wrote: > Here's the modified script. I made some changes, as suggested, but there > was no change in the output. I've included my entire script. My head is > getting mighty flat from banging it against the wall. Oh, and I added "use > warnings;" and I haven't got a clu

Re: STILL shifting through arrays of line data

2003-03-03 Thread Deb
(H, this should have been posted, but I don't see it - sorry if this actually becomes a double-posting...) Here's the modified script. I made some changes, as suggested, but there was no change in the output. I've included my entire script. My head is getting mighty flat from banging it ag

Re: STILL shifting through arrays of line data

2003-03-03 Thread Deb
Here's the modified script. I made some changes, as suggested, but there was no change in the output. I've included my entire script. My head is getting mighty flat from banging it against the wall. Oh, and I added "use warnings;" and I haven't got a clue what I need to do to fix those. I'd

Re: shifting through arrays of line data

2003-03-03 Thread Deb
John wrote: > Did you try the code I posted Friday? (Message-ID: <[EMAIL PROTECTED]>) John, Thanks, yes, I did. But, the syntax was new to me, and I've been reading up on it. I couldn't really get it to do what I want (see my previous post to this one). But, that's probably b/c I didn't expl

Re: STILL shifting through arrays of line data

2003-03-03 Thread John W. Krahn
Deb wrote: > > Okay, I'm still struggling.I just cannot seem to get my mind to > stop, look, and listen. Here's some code I'm working on: Did you try the code I posted Friday? (Message-ID: <[EMAIL PROTECTED]>) John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PRO

Re: STILL shifting through arrays of line data

2003-03-03 Thread Sudarshan Raghavan
> Okay, I'm still struggling.I just cannot seem to get my mind to > stop, look, and listen. Here's some code I'm working on: > - 8-< > use strict; You might also want to add a use warnings after use strict and check how y

Re: STILL shifting through arrays of line data

2003-03-03 Thread George P.
On Mon, 3 Mar 2003, Deb wrote: > Okay, I'm still struggling.I just cannot seem to get my mind to > stop, look, and listen. Here's some code I'm working on: > > - 8-< > use strict; > my %cmdLine; > my $DBG = 1; > > while (

STILL shifting through arrays of line data

2003-03-03 Thread Deb
Okay, I'm still struggling.I just cannot seem to get my mind to stop, look, and listen. Here's some code I'm working on: - 8-< use strict; my %cmdLine; my $DBG = 1; while () { chomp; my ($adx, $rest) = (spl

Re: shifting through arrays of line data

2003-03-02 Thread R. Joseph Newton
Deb wrote: > This (code below) makes sense to me, but I was talking this over with a > co-worker on Friday, and then I tried putting together some 2-dimensional > hashes - which hurts my head at the moment. Hi Deb Actually, the hash hee--so far, anyway--is not two-dimensional. More later > So

RE: shifting through arrays of line data

2003-03-01 Thread Beau E. Cox
Hi Deb - > -Original Message- > From: Deb [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 01, 2003 7:17 PM > To: R. Joseph Newton; Perl List > Subject: Re: shifting through arrays of line data > > > This (code below) makes sense to me, but I was talking this ov

Re: shifting through arrays of line data

2003-03-01 Thread Deb
This (code below) makes sense to me, but I was talking this over with a co-worker on Friday, and then I tried putting together some 2-dimensional hashes - which hurts my head at the moment. So I went to perl.plover.com/FAQs to read (again) his article on references, and I still have a mental block

Re: shifting through arrays of line data

2003-02-28 Thread R. Joseph Newton
Deb wrote: > Hi Guys, > > I have an array in which each element is a line commandline data. It looks > something like this - > > @Array contains lines: > > post1: -r [EMAIL PROTECTED] -x cat-100 -h post1 > post2: -x tel -h post2 > post3: -h post3 -x hifi The getRelationships sub here has a few l

Re: shifting through arrays of line data

2003-02-28 Thread R. Joseph Newton
"John W. Krahn" wrote: > "R. Joseph Newton" wrote: > > > > Deb wrote: > > > > > > I have an array in which each element is a line commandline data. It looks > > > something like this - > > >... > > > post1: -r [EMAIL PROTECTED] -x cat-100 -h post1 > > > post2: -x tel -h post2 > > > post3: -h post

Re: shifting through arrays of line data

2003-02-28 Thread John W. Krahn
"R. Joseph Newton" wrote: > > Deb wrote: > > > > I have an array in which each element is a line commandline data. It looks > > something like this - > > > > @Array contains lines: > > > > post1: -r [EMAIL PROTECTED] -x cat-100 -h post1 > > post2: -x tel -h post2 > > post3: -h post3 -x hifi > > >

Re: shifting through arrays of line data

2003-02-28 Thread R. Joseph Newton
Deb wrote: > Hi Guys, > > I have an array in which each element is a line commandline data. It looks > something like this - > > @Array contains lines: > > post1: -r [EMAIL PROTECTED] -x cat-100 -h post1 > post2: -x tel -h post2 > post3: -h post3 -x hifi > > What I really need to do is build a re

Re: shifting through arrays of line data

2003-02-28 Thread John W. Krahn
Deb wrote: > > Hi Guys, > > I have an array in which each element is a line commandline data. It looks > something like this - > > @Array contains lines: > > post1: -r [EMAIL PROTECTED] -x cat-100 -h post1 > post2: -x tel -h post2 > post3: -h post3 -x hifi > > And so on. The order of the opt

RE: shifting through arrays of line data

2003-02-28 Thread Dan Muey
> > Thanks, I know how to use split (I think). Since the data > comes in any order, and I have to corellate it, I can't think > of a way that split will fix me up - Maybe I'm missing > something. Can you give me an example? > Ok I'll give her a go my %results; my $cnt = 1; foreach $line(

Re: shifting through arrays of line data

2003-02-28 Thread Deb
Thanks, I know how to use split (I think). Since the data comes in any order, and I have to corellate it, I can't think of a way that split will fix me up - Maybe I'm missing something. Can you give me an example? deb Dan Muey <[EMAIL PROTECTED]> had this to say, > perldoc -f split > > Will

RE: shifting through arrays of line data

2003-02-28 Thread Dan Muey
perldoc -f split Will fic you up! Dmuey > Hi Guys, > > I have an array in which each element is a line commandline > data. It looks something like this - > > @Array contains lines: > > post1: -r [EMAIL PROTECTED] -x cat-100 -h post1 > post2: -x tel -h post2 > post3: -h post3 -x hifi > > An

shifting through arrays of line data

2003-02-28 Thread Deb
Hi Guys, I have an array in which each element is a line commandline data. It looks something like this - @Array contains lines: post1: -r [EMAIL PROTECTED] -x cat-100 -h post1 post2: -x tel -h post2 post3: -h post3 -x hifi And so on. The order of the options varies, and there may or may not