RE: has key/value pairs

2006-05-03 Thread Smith, Derek
-Original Message- From: Charles K. Clarkson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 5:41 PM To: 'Perl Beginners' Subject: RE: has key/value pairs Smith, Derek wrote: : Excellent... thank you. Before sending the email question, I : was trying to use split to

Re: has key/value pairs

2006-05-03 Thread Chad Perrin
On Wed, May 03, 2006 at 04:41:19PM -0500, Charles K. Clarkson wrote: > Smith, Derek wrote: > > : Excellent... thank you. Before sending the email question, I > : was trying to use split to get rid of that and could not get > : it to work as I was using > : > : > : For () > : If (/pattern/) { >

Re: has key/value pairs

2006-05-03 Thread JupiterHost.Net
Excellent... thank you. Before sending the email question, I was trying to use split to get rid of that and could not get it to work as I was using For () If (/pattern/) { split /\=/ ,$_ /; $vg{$_}++ } } Why didn't this work? a) its invalid code, there are ton of things that'd

RE: has key/value pairs

2006-05-03 Thread Charles K. Clarkson
Smith, Derek wrote: : Excellent... thank you. Before sending the email question, I : was trying to use split to get rid of that and could not get : it to work as I was using : : : For () : If (/pattern/) { :split /\=/ ,$_ /; :$vg{$_}++ : } : } : : : Why didn't this work? Becau

RE: has key/value pairs

2006-05-03 Thread Smith, Derek
-Original Message- From: Charles K. Clarkson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 4:10 PM To: 'Perl Beginners' Subject: RE: has key/value pairs Smith, Derek wrote: : I need to create a hash with a key/value pair as text:nontext : like so: : savecrash as the

RE: has key/value pairs

2006-05-03 Thread Charles K. Clarkson
Smith, Derek wrote: : I need to create a hash with a key/value pair as text:nontext : like so: : savecrash as the key and 1 as the value : : savecrash_dir as the key and /var/adm/crash as the value. : : for (;;) { : : if ( /(?i)savecrash=/ || /(?i)savecrash_dir=\W+\w+/ ) { :