Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^8: substr oddity

by Ytrew (Pilgrim)
on Mar 07, 2005 at 02:39 UTC ( #437123=note: print w/replies, xml ) Need Help??


in reply to Re^7: substr oddity
in thread Perl oddities

So, by your description of "crash", I assumed you were getting some indication on your system that Perl had crashed--such as the "core dumped" message.

*sigh* I'm sorry. No, that's not at all the case, and I agree that I probably mis-used the term 'crash'. I was trying very hard to remember not to say "die" to mean abnormal termination, because the behaviour wasn't a due to the die() command at all.

To put that more clearly, calling substr in a lvalue context, with parameters that lie entirely outside the target string, causes a fatal-but-silent termination of the Perl process.

Yes, that's exactly what I get! Again, my use of the term "crash" was probably misleading. I apologize: it seems we've been talking at cross-purposes for a while now. :-(

So, are we agreeing; disagreeing; agreeing to disagree or disagreeing to agree?

Well, I think we get the same output, and I think we both agree that it's odd. That counts as agreeing to me. :-)
--
Ytrew

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2020-11-28 20:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?