Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Perl Monks, Newbie to perl, running this script below is not outputing any data, plforecast.txt is 0 bytes, any help will be great

by Eily (Monsignor)
on Jan 07, 2015 at 16:49 UTC ( [id://1112520]=note: print w/replies, xml ) Need Help??


in reply to Perl Monks, Newbie to perl, running this script below is not outputing any data, plforecast.txt is 0 bytes, any help will be great

This code won't work on later versions of perl. split used to output the splitted data to @_ in v5.10 and earlier when called in scalar or void context. Starting with v5.12 (or maybe some subversion of v5.10, I didn't check that far) you'll have to write @_ = split /,/ explicitly, or even better, use another variable than @_ because of its special meaning in perl.

  • Comment on Re: Perl Monks, Newbie to perl, running this script below is not outputing any data, plforecast.txt is 0 bytes, any help will be great
  • Download Code

Replies are listed 'Best First'.
Re^2: Perl Monks, Newbie to perl, running this script below is not outputing any data, plforecast.txt is 0 bytes, any help will be great
by perlnobie (Initiate) on Jan 07, 2015 at 19:04 UTC
    Boss your help is appreciated, the change you mentioned picked up

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2026-02-18 17:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.