-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
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/) {
>
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
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
-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
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+/ ) {
: