in reply to Re^2: converting from string to SCALAR when using strict "refs"
in thread converting from string to SCALAR when using strict "refs"
If it needs to be a reference to a scalar (as it appears it does), then you want this:
my $processor = \`/aa/bin/get_pbind_cpus.ksh`;
That's kind of odd, however. I'd look at the other usages to see if they really are passing in a scalar reference. I'm not saying it's impossible, but I find it strange since there isn't really any advantage to passing in a reference rather than the variable itself.
|
|---|