Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: split giving warning

by pbeckingham (Parson)
on Mar 22, 2004 at 05:04 UTC ( [id://338551]=note: print w/replies, xml ) Need Help??


in reply to split giving warning

Because the split call returns a list, and as you ignore the returned list, it gets stuffed into @_, the default array.

This feature is deprecated, meaning that it will disappear someday, and the interpreter is informing you so that the code can be modified to run on future versions of Perl.

Replies are listed 'Best First'.
Re: Re: split giving warning
by allolex (Curate) on Mar 22, 2004 at 05:09 UTC

    In other words, do something like this:

    my @array = split /\s+/; $schds{ lc($array[0]) } = 1;

    --
    Allolex

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://338551]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-23 10:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found