Home > Perl Error > Perl Error Use Of Implicit Split To Is Deprecated

Perl Error Use Of Implicit Split To Is Deprecated

Join UsClose Dev Shed Forums Navigation Forums Tools Newsletter Signup Articles Help Devshed Network Developer Shed ASP Free Dev Shed Dev Articles Dev Hardware Tutorialized SEO Chat Scripts Codewalkers Web Hosters but, but, Discussion in 'Perl Misc' started by Wes Groleau, Feb 6, 2006. How to add non-latin entries in hosts file Is this alternate history plausible? (Hard Sci-Fi, Realistic History) Bangalore to Tiruvannamalai : Even, asphalt road Carrying Metal gifts to USA (elephant, eagle Are there any historically significant examples? http://newmexicosupercomputer.com/perl-error/perl-error-pseudo-hashes-are-deprecated.html

You call split in a scalar context (as $GedRec is a scalar), so what happens is that the result of the split will be put into @_ implicitly, and $GedRec will RE: Use of implicit split to @_ is deprecated at ishnid (Programmer) 10 May 05 11:10 Nope - CGI.pm will handle `&' and `;' equally well. The obvious solution is to not use some contrived solution like this when Perl has a perfectly good length function. Words that are both anagrams and synonyms of each other Asking for a written form filled in ALL CAPS if (λ x .

But "launch+nuclear+weapons=false" is in $ENV{QUERY_STRING}! Please make sure > > you check the built-in perl documentation for the functions your using, > > especially if the warning message is nice enough to tell you exactly > Comments to Ask Bjørn Hansen at [email protected] | Group listing | About but, but, Paul Lalli wrote: > solve the problem for yourself.

node historyNode Type: perlquestion [id://802744]Approved by SuicideJunkieFront-paged by SuicideJunkiehelp Chatterbox? and all is quiet... Check out past polls. It's amazing (and a little depressing) how many people won't read anything, expect to be spoon-fed and respond to examples with ``it doesn't work'', without any indication of what they're trying For the empty list LIMIT would have been 1 by default. –eugene y Mar 12 '10 at 23:49 1 @eugene y: evil.

Member Login Remember Me Forgot your password? Use of split in scalar context is deprecated, however, because it clobbers your subroutine arguments. The obvious cleanup is to use length(), and I can't think of any reason he didn't. http://www.perlmonks.org/?node_id=802744 RE: Use of implicit split to @_ is deprecated at KevinADC (TechnicalUser) 9 May 05 12:40 Hi 1DMF (does DMF stand for what I think it does?) You said you started

PerlMonks is a proud member of the The Perl Foundation. One thing to keep in mind is that when you split you will get multiple outputs, not a single scalar value. Coding Forums Forums > Archive > Archive > Perl > Perl Misc > Forums Forums Quick Links Search Forums Recent Posts Members Members Quick Links Notable Members Current Visitors Recent Activity To do what you want you have to either put the scalar in a list: my ( $GedRec ) = split /\n/, $Params{ $Key }; # line 95 Or use a

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. I'm pretty sure now that he was doing this because he wasn't aware of the length() function. Faq Reply With Quote May 14th, 2004,07:19 PM #2 keath View Profile View Forum Posts Visit Homepage  !~ /m$/ Devshed Specialist (4000 - 4499 posts)      print join'',(reverse sort map{/\d([a-z])\d/}split/\W/,'[email protected]&60f%3h4#moo^1m2'),(map{/\d(\d)/}grep/\w\d/,reverse split/\W/,'a2&2b#9i*30%42'),(unpack"AA",(chr(0b110000).chr(0b110011))); Faq Reply With Quote October 10th, 2005,06:27 PM #3 KevinADC View Profile View Forum Posts  Contributing User Devshed Frequenter (2500 - 2999 posts)  

I guess my $current_year++ takes a few months to finish executing. -- Tad McClellan SGML consulting Perl programming Fort Worth, Texas Tad McClellan, Feb 9, 2006 #18 Advertisements Show Ignored this contact form typo! A word to describe meaningless exchanges in conversation more hot questions question feed lang-perl about us tour help blog chat data legal privacy policy work here advertising info mobile contact us it clobbers your subroutine arguments. - what does this mean?

The bit about the FBI is only an attempt at humour.Incidentally, you can use the cgi-lib compatibility features of CGI.pm to use it as a direct drop-in replacement for your get_data() Paul Lalli > > > -- > Tad McClellan SGML consulting > Perl programming > Fort Worth, Texas Paul Lalli, Feb 9, 2006 #17 Tad McClellan Guest Re: implicit split Near as I can tell, this coincides with the release of MS-DOS. -- Larry DeLuca Wes Groleau, Feb 7, 2006 #9 Paul Lalli Guest Re: implicit split to @_ is have a peek here somewhere.

Allowing the context to determine whether an array is generated or size is returned seems much more Perlish somehow.... -- Charles DeRykus Report this message « merciless garbage collector Index FAQ I don't see how it is > going into @_ The result of a split is an array, not a scalar. This works because the value of a list assignment in scalar context is the number of elements on the *right* side of the assignment.

Cancel Red Flag SubmittedThank you for helping keep Tek-Tips Forums free from inappropriate posts.The Tek-Tips staff will check this out and take appropriate action.

The documentation explains it pretty well. Why don't cameras offer more than 3 colour channels? (Or do they?) When did the coloured shoulder pauldrons on stormtroopers first appear? perldiag doesn't help. Comment on Use of implicit split to @_ is deprecatedDownload Code Replies are listed 'Best First'.

Instead, he said:

My problem was that you gave no indication you had attempted to solve the problem for yourself.
>> if you had simply said "I Instead, split to an actual array, and test the size of that array: my @items = split ' ', $list; if (@items > 1 ) { . . . } Paul sorry! [reply] Back to Seekers of Perl Wisdom Log In? Username: Password: remember me What's my password? Check This Out How do you say "you all" in Esperanto?