Re: problems hashing

2011-01-08 Thread Rob Dixon
On 08/01/2011 04:26, Chris Stinemetz wrote: From: Brandon McCaig [mailto:bamcc...@gmail.com] On Fri, Jan 7, 2011 at 10:51 PM, Chris Stinemetz wrote: #!/usr/bin/perl use warnings; use strict; my $data = (<>); #Market configurations has for cells my %marketInfo = ( "STL" => { "start" =>

RE: problems hashing

2011-01-08 Thread Chris Stinemetz
__ From: Jim Gibson [jimsgib...@gmail.com] Sent: Saturday, January 08, 2011 1:32 AM To: Chris Stinemetz; Brandon McCaig Cc: John Delacour; beginners@perl.org Subject: RE: problems hashing At 9:26 PM -0700 1/7/11, Chris Stinemetz wrote: >Thanks Brandon, > >Ultimately I am trying to take the

RE: problems hashing

2011-01-07 Thread Jim Gibson
At 9:26 PM -0700 1/7/11, Chris Stinemetz wrote: Thanks Brandon, Ultimately I am trying to take the value from the input data in index position "31" and assign one of the three keys to it. For example if index 31 has the value 801 it should be assigned "ICT" when I run the program. I hope I ex

RE: problems hashing

2011-01-07 Thread Chris Stinemetz
nk you for your help! Chris -Original Message- From: Brandon McCaig [mailto:bamcc...@gmail.com] Sent: Friday, January 07, 2011 10:19 PM To: Chris Stinemetz Cc: John Delacour; beginners@perl.org Subject: Re: problems hashing On Fri, Jan 7, 2011 at 10:51 PM, Chris Stinemetz wrote: >

Re: problems hashing

2011-01-07 Thread Brandon McCaig
On Fri, Jan 7, 2011 at 10:51 PM, Chris Stinemetz wrote: > #!/usr/bin/perl > > use warnings; > use strict; > > my $data = (<>); > > #Market configurations has for cells > my %marketInfo = ( >   "STL" => { "start" => 300, >              "end"   => 599, }, >   "MCI" => {  "start" => 1, >            

RE: problems hashing

2011-01-07 Thread Chris Stinemetz
18;43243423;01;;; Chris -Original Message----- From: John Delacour [mailto:johndelac...@gmail.com] Sent: Thursday, January 06, 2011 2:16 PM To: beginners@perl.org Subject: Re: problems hashing At 11:25 -0700 06/01/2011, Chris Stinemetz wrote: &

Re: problems hashing

2011-01-06 Thread John Delacour
At 11:25 -0700 06/01/2011, Chris Stinemetz wrote: I am having problems using hash function. I would like to only extract 4 columns of data from a text file that is ; delimited. Below is my code along with the errors I am receiving. Any help is appreciated. 1. #!/usr/bin/perl 2.

Re: problems hashing

2011-01-06 Thread Michiel Beijen
Hi Chris, On Thu, Jan 6, 2011 at 7:25 PM, Chris Stinemetz wrote: > I am having problems using hash function. I would like to only extract 4 > columns of data from a text file that is ; delimited. > > Below is my code along with the errors I am receiving. Any help is > appreciated. Actually I w

Re: problems hashing

2011-01-06 Thread John W. Krahn
Chris Stinemetz wrote: Hello all, Hello, I am having problems using hash function. I would like to only extract 4 columns of data from a text file that is ; delimited. Below is my code along with the errors I am receiving. Any help is appreciated. -Chris 1. #!/usr/bin/perl 2.

Re: problems hashing

2011-01-06 Thread jbiskofski
#!/usr/local/bin/perl use strict; while (<>) { chomp; my @values = split(/;/); my ($mtype,$cell,$sector,$rlptxat) = ($values[5],$values[31],$values[32],$values[44]); print "$mtype - $cell - $sector - $rlptxat\n"; } i dont know if that is over simplified, you may h

Re: problems hashing

2011-01-06 Thread Robert Wohlfarth
On Thu, Jan 6, 2011 at 12:25 PM, Chris Stinemetz < cstinem...@cricketcommunications.com> wrote: > 11. %fieldMap = split(/;/, $data); > > > 12. foreach my $data (keys %fieldMap) { > > 13. print "$fieldMap{$data}\t"; > > 14. } > > Odd number of elements in hash assignment at./beta2.pl line 1