Eric Walker wrote:
>
> Does anyone know what this means...
> code..
> for ($i = 0;$i <= $size; $i+=$temp){
>  $type    = split(::,shift (@hold));
>  }
>
> Warning:
> Use of implicit split to @_ is deprecated at .//test.pl line 21

perldoc -f split says:

  split   Splits a string into a list of strings and returns that list. By
          default, empty leading fields are preserved, and empty trailing
          ones are deleted.

          In scalar context, returns the number of fields found and splits
          into the "@_" array. Use of split in scalar context is
          deprecated, however, because it clobbers your subroutine
          arguments.

But if you insist on using it, add

  no warnings 'deprecated';

and Perl won't moan at you.

Rob



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to