As others have said, it's very rare that you need to process string byte by byte in perl, but if you really do have to and you have any volume of strings to process then use @bytes = unpack 'C*', $string; in preference to @bytes = split '', $string;. It's an order of magnitude quicker.
In reply to Re: Process string as Array
by BrowserUk
in thread Process string as Array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |