|
From: | Alex Shinn |
Subject: | Re: [Chicken-hackers] substring function and bounds checks |
Date: | Fri, 8 Feb 2013 11:36:46 +0900 |
Alex Shinn scripsit:
I used to use it all the time in Perl, where it is the normal behavior
> Can you provide a real-world example where you'd want to use this
> function?
of the substr() function, to pull a fixed-width field out of a line of
text without having to worry about short lines. If the field was at the
end of the line, the result was short;
[Prev in Thread] | Current Thread | [Next in Thread] |