Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

caller() returns wrong line on multi-line function call

by jh (Beadle)
on Sep 13, 2017 at 18:24 UTC ( [id://1199342]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
      %{{ A => 1, B => 2, C => 3 }}
    );
    
  2. or download this
    Called from line 11; caller() reports line 11
    Called from line 15; caller() reports line 16
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    );
    
    print "\n";
    
  4. or download this
        Called from line 22; caller() reports line 22 [args: A 1 D 4 C 3 E
    + 5 B 2]
        Called from line 23; caller() reports line 23 [args: HASH(0x974070
    +)]
    ...
    *** Called from line 122; caller() reports line 124 [args: space_1 str
    +ings_are_scalar]
    *** Called from line 126; caller() reports line 129 [args: space_1 spa
    +ce_2 strings_are_scalar]
    *** Called from line 131; caller() reports line 134 [args: space_1 spa
    +ce_2 strings_are_scalar space_3 space_4]
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1199342]
Approved by beech
Front-paged by LanX
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-20 01:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found