Re: Get character from a string

2001-06-11 Thread Paul
--- DeXteR <[EMAIL PROTECTED]> wrote: > Like we have string $blah = "abcdef" and i wand for example character > 5, the "e", to mess around with further. How should i do that? I'd probably say substr($blah,4,1) ( though you could do something wierd like (split '', $blah)[4] if you want

Re: Get character from a string

2001-06-11 Thread Jeff 'japhy' Pinyan
On Jun 11, DeXteR said: >I'm writing a program (what else should i do with perl) and now i got to >get a character from a string, things like that happen those days. >Like we have string $blah = "abcdef" and i wand for example character 5, >the "e", to mess around with further. How should i do

Get character from a string

2001-06-11 Thread DeXteR
Hi all, I'm writing a program (what else should i do with perl) and now i got to get a character from a string, things like that happen those days. Like we have string $blah = "abcdef" and i wand for example character 5, the "e", to mess around with further. How should i do that? gReeTz Arjen H