S
Sara
Perl is unhappy with this line:
shift my @id = split /ID\s+([^\n]+)\n/, $$_;
Use of implicit split to @_ is deprecated at ./SSMCP10Conditioner.pl
line 283.
Can't modify shift in scalar assignment at ./SSMCP10Conditioner.pl
line 283, near "$_;"
Execution of ./SSMCP10Conditioner.pl aborted due to compilation
errors.
but it works fine without the leading "shift". Of course I can do the
shift on the next line, but I don't understand why this syntax isn't
OK. shift takes an array as an arg, I gave it an array, but its still
not happy? And why is it assuming I'm trying to do anything implicitly
with @_ ?
Unless @id is "undef" when shift executes, but I'd anticipate a
different error message in that case?
And if this is a matter of mucking up this nice clean syntax with
parens, I hope the P6 Porters are reconsidering the priority order. If
that's the answer I'll just go with the next line shift..
TY,
Gx
shift my @id = split /ID\s+([^\n]+)\n/, $$_;
Use of implicit split to @_ is deprecated at ./SSMCP10Conditioner.pl
line 283.
Can't modify shift in scalar assignment at ./SSMCP10Conditioner.pl
line 283, near "$_;"
Execution of ./SSMCP10Conditioner.pl aborted due to compilation
errors.
but it works fine without the leading "shift". Of course I can do the
shift on the next line, but I don't understand why this syntax isn't
OK. shift takes an array as an arg, I gave it an array, but its still
not happy? And why is it assuming I'm trying to do anything implicitly
with @_ ?
Unless @id is "undef" when shift executes, but I'd anticipate a
different error message in that case?
And if this is a matter of mucking up this nice clean syntax with
parens, I hope the P6 Porters are reconsidering the priority order. If
that's the answer I'll just go with the next line shift..
TY,
Gx