Re: how to create a hash on the fly

2010-04-16 Thread Tim Bowden
On Fri, 2010-04-16 at 08:40 +0100, Philip Potter wrote: > > Great post, Steve. Does perl-beginners have a website where this could > be archived for later reference? > > Phil > http://www.nntp.perl.org/group/perl.beginners/ Tim Bowden -- To unsubscribe, e-mail: beginners-unsubscr...@perl.or

Re: how to create a hash on the fly

2010-04-16 Thread Philip Potter
On 16 April 2010 03:17, Steve Bertrand wrote: > On 2010.04.15 03:37, raphael() wrote: >> But as a beginning Perl programmer I find references extremely complicated. >> Although I have to learn them sometime. > > Although I Am Not A Programmer, if you do actually desire spending time > on writing P

Re: how to create a hash on the fly

2010-04-15 Thread Steve Bertrand
On 2010.04.15 22:52, raphael() wrote: > It always comes down to desire and will to do something. yep. It also comes down to whether you (or your job function) meet the need or want. Personally, I find that learning comes from want, not need though. > I agree that had I mastered references most o

Re: how to create a hash on the fly

2010-04-15 Thread raphael()
On Fri, Apr 16, 2010 at 7:47 AM, Steve Bertrand wrote: > On 2010.04.15 03:37, raphael() wrote: > > On Thu, Apr 15, 2010 at 10:55 AM, Uri Guttman > wrote: > > > >>> "r" == raphael() writes: > >> > >> r> # abc <-- this_should_be_hash_name > > >> the proper solution is to use a hash to

Re: how to create a hash on the fly

2010-04-15 Thread Steve Bertrand
On 2010.04.15 03:37, raphael() wrote: > On Thu, Apr 15, 2010 at 10:55 AM, Uri Guttman wrote: > >>> "r" == raphael() writes: >> >> r> # abc <-- this_should_be_hash_name >> the proper solution is to use a hash to hold these hashes. this is >> cleaner, safer, allows you to isolate this

Re: how to create a hash on the fly

2010-04-15 Thread Uri Guttman
> "r" == raphael() writes: r> On Thu, Apr 15, 2010 at 10:55 AM, Uri Guttman wrote: please learn to edit quoted emails. you added 4 lines and left my entire post. r> You are right! but of course! :) r> But as a beginning Perl programmer I find references extremely complicated. r>

Re: how to create a hash on the fly

2010-04-15 Thread raphael()
On Thu, Apr 15, 2010 at 10:55 AM, Uri Guttman wrote: > > "r" == raphael() writes: > > r> # abc <-- this_should_be_hash_name > > r> {space} "random_name_or_number" "date" "other_things_1" > "other_things_2" > r> {space} "random_name_or_number" "date" "other_things_1" > "other_thi

Re: how to create a hash on the fly

2010-04-14 Thread Uri Guttman
> "r" == raphael() writes: r> # abc <-- this_should_be_hash_name r> {space} "random_name_or_number" "date" "other_things_1" "other_things_2" r> {space} "random_name_or_number" "date" "other_things_1" "other_things_2" r> How can I create a hash by the name that matches r

Re: how to create a hash on the fly

2010-04-14 Thread Alexey Salmin
On Thu, Apr 15, 2010 at 11:59 AM, raphael() wrote: > Hello People, > I am stuck on a minor problem. How can I create a hash? > > Data is as follow > > -- DATA -- > > # abc      <-- this_should_be_hash_name > > {space} "random_name_or_number"  "date"  "other_things_1" "other_things_

how to create a hash on the fly

2010-04-14 Thread raphael()
Hello People, I am stuck on a minor problem. How can I create a hash? Data is as follow -- DATA -- # abc <-- this_should_be_hash_name {space} "random_name_or_number" "date" "other_things_1" "other_things_2" {space} "random_name_or_number" "date" "other_things_1" "other_