Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^5: Overloading Weirdness

by haukex (Chancellor)
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
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 surveying the Monastery: (5)
As of 2020-01-25 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?