NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
string splitting... (Score:1)
You might want to do this by hand... using a foreach loop and Left or something abominable to get each character of the string.
VBs code for split uses InStr and InStrRev (sp?) searching for the pattern and Mid to cut out the string.
I once parsed HTML brackets (a long time ago) for equality of said bracket numbers... yet I wrote my own split which was much faster.
Sorry to hear about your pain.
/neuroball/
Reply to This
Re:string splitting... (Score:1)
~ % perl -e 'print join("*",split "","something here"),"\n"'
s*o*m*e*t*h*i*n*g* *h*e*r*e
Or if you prefer...
~ % perl -e 'print join("*",split
s*o*m*e*t*h*i*n*g* *h*e*r*e
Re:string splitting... (Score:1)
To make an array of chars i did this:
Dim arrInput
ReDim arrInput( Len( strInput ) - 1 )
For intTemp = 1 To Len( strInput )
arrInput( intTemp - 1 ) = Mid( strInput, intTemp, 1 )
Next
Sucky, i know, but atleast doing:
strInput = Join( arrInput, "" )works to get the string back! :)