Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

substr oddity

by Ytrew (Pilgrim)
on Mar 04, 2005 at 05:14 UTC ( #436457=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use strict;
    use warnings;
    foo( substr($x,2,1) ); # crashes here
    print "Alive!\n"; # not reached
    sub foo {}
  2. or download this
    use strict;
    use warnings;
    foo($y); # no-op
    print "Alive\n"; # we get here just fine
    sub foo {}

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://436457]
[Corion]: LanX: Yes, that's the main problem - you have lots (and lots) of workarounds in various places and stages of the processing, and to clean that mess up requires action across the complete codebase. And it's almost impossible to do it piece-by-piece

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (13)
As of 2017-01-16 14:08 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (150 votes). Check out past polls.