Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: function prototyping & perl 5.8.20

by dave_the_m (Monsignor)
on Jul 31, 2018 at 06:39 UTC ( #1219532=note: print w/replies, xml ) Need Help??


in reply to function prototyping & perl 5.8.20

The code that you've shown is legal in both versions of perl. Either something just above the sub declaration is tripping up perl, or maybe there are invisible chars at the end of the 'sub' line (such as \r) which one version of perl is more fussy about. It may be that your 'simplifying' edit just happens to remove the \r's (or whatever).

That particular error message means that following the empty prototype '()' and after skipping any whitespace, perl didn't see a character that it expected, such as '{'.

Dave.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2019-05-27 13:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (156 votes). Check out past polls.

    Notices?