Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Checking for duplicate subroutine names

by VinsWorldcom (Vicar)
on Oct 12, 2012 at 15:45 UTC ( #998729=note: print w/ replies, xml ) Need Help??


in reply to Checking for duplicate subroutine names

use warnings;

I'm not a Perl expert either, but -w and 'use warnings' apparently aren't the same:

VinsWorldcom@C:\Users\VinsWorldcom\tmp> test.pl Subroutine s1 redefined at C:\Users\VinsWorldcom\tmp\test.pl line 9. calling s1... hi 2 you


Comment on Re: Checking for duplicate subroutine names
Select or Download Code
Re^2: Checking for duplicate subroutine names
by SirBones (Friar) on Oct 12, 2012 at 16:23 UTC

    Thank you. I was not aware (or had forgotten) that the -w switch was not identical to "use warnings". That gets it alright.

    -Ken

    "This bounty hunter is my kind of scum: Fearless and inventive." --J.T. Hutt

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2015-07-07 02:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (86 votes), past polls