On Mon, Aug 12, 2002 at 05:40:18PM -0400, Nikola Janceski wrote:
> you are using split in scalar context. Anyone know what's the solution to
> get around this? other than turning off warnings.
>
> > -----Original Message-----
> >
> > Use of implicit split to @_ is deprecated at UNIX_prelim.pl line 344.
> >
> > line 344: $policyCount = split (/\t/, $violations{$vID});
You could use the =()= operator:
$policyCount =()= split (/\t/, $violations{$vID}, -1);
OK, it's not an operator. It's assigning the result of the split to an
empty list. And you need to specify a negative third argument to split,
which may have undesirable side effects.
You might prefer = () = too.
Or you might prefer to do it another way. tr for example.
$policyCount = $violations{$vID} =~ tr/\t//;
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]