Somehow substr is seen as a string, how do change this behaviour ?$a = 'a b c d' ; $b = 'rstu' ; for ($a) { s/a/substr($b,0,1)/ ; s/b/substr($b,1,1)/ ; ..... }
In reply to regexp and a perl function by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |