I have tried it both ways and I am getting a message about "use of uninitialized value in concat......"
sub getPlatformFiles { # my ($plat_in, $nic_in) = @_; my $plat_in = shift; my $nic_in = shift; my @list; print "<$plat_in>\n"; #debugging print "<$nic_in>\n"; #debugging if ($plat_in =~ /RedHat/) { @list = ("/etc-test/resolv.conf", "/etc-test/sysconfig/network-scripts/ifcfg-$nic->{de +vice}"); } return @list; }
The first debugging has the correct value but the second is blank empty. It prints <>
In reply to Re^2: Another scoping issue: How do I send 2 variables to my sub and use both.
by MikeDexter
in thread Another scoping issue: How do I send 2 variables to my sub and use both.
by MikeDexter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |