|
|
| 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 greatby Eily (Monsignor) |
| on Jan 07, 2015 at 16:49 UTC ( [id://1112520]=note: print w/replies, xml ) | Need Help?? |
|
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.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||