parthodas has asked for the wisdom of the Perl Monks concerning the following question:
@mylnxsrvrs = split(',', $myhash{SBLLNXSRVRHOSTS}); @mywinsrvrs = split(',', $myhash{SBLWINSRVRHOSTS}); @mysblroot = split(',', $myhash{SIEBELROOT}); @mysblsrvrpath = (',',$myhash{SBLSRVRPATH}); foreach $a (@mylnxsrvrs) {my $lnxsrvr = "$a"; printf "$a $lnxsrvr\n\n";} printf "$lnxsrvr\n"; printf "@mylnxsrvrs";
The output shows -- 1my $lnxsrvrs = "@mylnxsrvrs"; printf "$lnxsrvrs";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to capture a value from a list of values
by flexvault (Monsignor) on Sep 02, 2015 at 10:40 UTC | |
by parthodas (Acolyte) on Sep 02, 2015 at 11:36 UTC | |
by tangent (Parson) on Sep 02, 2015 at 11:45 UTC | |
by parthodas (Acolyte) on Sep 02, 2015 at 12:05 UTC | |
|
Re: Trying to capture a value from a list of values
by GotToBTru (Prior) on Sep 02, 2015 at 13:04 UTC | |
|
Re: Trying to capture a value from a list of values
by Laurent_R (Canon) on Sep 02, 2015 at 11:48 UTC | |
by Not_a_Number (Prior) on Sep 02, 2015 at 13:19 UTC | |
by Laurent_R (Canon) on Sep 02, 2015 at 13:31 UTC |