in reply to Re^2: Another scoping issue: How do I send 2 variables to my sub and use both.
in thread Another scoping issue: How do I send 2 variables to my sub and use both.
should read
"/etc-test/sysconfig/network-scripts/ifcfg-$nic_in->{device}");
- you missed a search and replace. If you are using strict and it did not get caught, that would be for the reason I detailed before.
If print "<$nic_in>\n"; is not outputting something that looks like <HASH(0x236e88)>, then you are passing it an undefined value. Are you calling the subroutine with something that looks like getPlatformFiles($platform,$nic);? Are you sure $nic is defined?
|
|---|