>>>>> "Pedro" == Pedro A Reche Gallardo <[EMAIL PROTECTED]> writes:

Pedro> Hi all, the script embodied in this e-mail is giving me the following
Pedro> error message. 


Pedro> Use of implicit split to @_ is deprecated at ransep.pl line 20.
Pedro> Use of implicit split to @_ is deprecated at ransep.pl line 23.


Pedro> Any idea what that thing means?

Yes.  Look at line 20 and 23:

Pedro> if ($lines[$y] =~ qw(^SQ)) {

Pedro> if ($lines[$y] =~ qw(^//)) {

The right side of =~ is always a pattern.  If you give it a string, it
interprets it as a pattern anyway.  And it's also therefore evaluated
in scalar context.  The qw() operator is defined in "perlsyn" to be
the same as split(" ", q(...)), so you've got the equivalent of:

  $lines[$y] =~ split(" ", q(^SQ))

which is a split in a scalar context.  Now, looking up "perldoc -f split",
we see that means to split the items into @_ (deprecated) and return
the number of items (1).  So effectively, you're saying:

  $lines[$y] =~ /1/

In other words, does the line match 1.

Now, what did you *want* it to do?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to