Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: Overloading Weirdness

by haukex (Bishop)
on Jun 30, 2018 at 19:07 UTC ( #1217662=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    use warnings;
    ...
    foo bar
    unintended stringification at test.pl line 34.
    Can't locate object method "str" via package "foo bar" (perhaps you fo
    +rgot to load "foo bar"?) at test.pl line 35.
    
  2. or download this
    $ perl -MO=Concise,-src test.pl | perl -ne \
        '/^#\s+\d+\s*:/&&($a=$_);/(?<!ex-)stringify/&&print$a,$_'
    test.pl syntax OK
    # 34: my $zz; $zz = "$x $y";  # warns
    1a    <@> stringify[$zz:257,258] sK/TARGMY,1 ->1b
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2022-05-18 00:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (68 votes). Check out past polls.

    Notices?