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

Re: Prototype Mismatch Errors

by LanX (Saint)
on Aug 07, 2018 at 20:41 UTC ( [id://1220036]=note: print w/replies, xml ) Need Help??


in reply to Prototype Mismatch Errors

On another note, don't you activate warnings ?

I'm surprised you're not seeing any "subroutine redefined" errors.

(can't test ATM)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Replies are listed 'Best First'.
Re^2: Prototype Mismatch Errors
by hippo (Bishop) on Aug 08, 2018 at 08:05 UTC
    $ cat use.pl #!/usr/bin/env perl use strict; use warnings; use POSIX; use Date::Format; $ ./use.pl Prototype mismatch: sub main::strftime: none vs ($\@;$) at /usr/share/ +perl5/vendor_perl/Exporter.pm line 66. at ./use.pl line 5. Prototype mismatch: sub main::ctime: none vs ($;$) at /usr/share/perl5 +/vendor_perl/Exporter.pm line 66. at ./use.pl line 5. Prototype mismatch: sub main::asctime: none vs (\@;$) at /usr/share/pe +rl5/vendor_perl/Exporter.pm line 66. at ./use.pl line 5. $ perl -v | head -3 This is perl 5, version 20, subversion 3 (v5.20.3) built for x86_64-li +nux-thread-multi (with 16 registered patches, see perl -V for more detail)

    I would hypothesise that because the prototypes are different, the subroutines are not actually redefined. Just a guess, though.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-26 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found