in reply to Re: two vars from one string.
in thread two vars from one string.
## @hbas contains fcs0 fcs1 my %hoh; for my $hba (@hbas) { $hoh{$hba} = qx(/usr/bin/fcstat $hba|/usr/bin/grep -i node|/usr/bin/cut -f2 +-d:); } ### above gives me WWN strings while (my ($key, $val) = each %hoh) { print "$key =>\n\t$val\n"; print $val; } __OUTPUT__ fcs1 => 0x20000000C95A58AE 0x20000000C95A58AE fcs0 => 0x20000000C95C0379 0x20000000C95C0379
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: two vars from one string.
by ikegami (Patriarch) on Mar 03, 2010 at 18:27 UTC | |
by mikejones (Scribe) on Mar 03, 2010 at 21:21 UTC | |
by ikegami (Patriarch) on Mar 03, 2010 at 21:37 UTC |