Gossamer Forum
Home : General : Perl Programming :

Help with HASHES

Quote Reply
Help with HASHES
Hi Peoples,

Im kinda new to perl, so here's a quick question, maybe somenoe can even think of an alternative ?

I'm trying to create a hash, then reference it later, but my values in the hash are multiple field like so...

%cmd = qw(
bankloan "/apps/bklnsrv/blcor/scripts/blbert.sh"
dealviewer "/apps/mts/bin/DealViewer.sh -display \@d&"
);


When i reference it using:

my $choice = $cmd{dealviewer}

All i get is : "/apps/mts/bin/DealViewer.sh (it left out the -display \@d&")


How do i grab the whole value if my values are more than one word ? Thanks in advance
Subject Author Views Date
Thread Help with HASHES mtorres 4319 Apr 16, 2004, 9:14 AM
Thread Re: [mtorres] Help with HASHES
Watts 4211 Apr 16, 2004, 10:20 AM
Post Re: [Watts] Help with HASHES
mtorres 4178 Apr 16, 2004, 12:02 PM