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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.