On Saturday, Oct 30, 2004, at 21:46 US/Central, [EMAIL PROTECTED] wrote:
My earlier post was not quite clear. I will explain my problem in
detail here.

I have a string whose length is say 5. I need to copy another string
into this string but from an offset of 10.
I tried using substr but this is a limitation of substr and it gave me
a fatal error.
Is there any other function, method which will allow me to do so ?

Sounds like what you want to do is concatenate two strings with something in between. For example:


$ perl -e '
$foo="abcde";
$bar="fghij";
$foobar=$foo . "     " . $bar;
print "$foo : $bar : $foobar\n";
'
abcde : fghij : abcde     fghij

Is that close to what you are looking for? If not, could you post some sample code of what you are trying to do along with the error message, sample input data, and the expected output data? I find it easier to debug buggy code than to debug descriptions of buggy code.

Regards,
- Robert


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to