Re: Mix of English and Cyrillic Characters

2011-04-02 Thread Brian Fraser
I don't really know the first thing about Cyrillic, so you'll probably have to play around with this before making it work like you want it to. It makes use of Unicode character properties, which you can start learning from perluniprops[0]: $text =~ s/[\p{Cyrillic}\p{Block: Cyrillic}\p{Block: Cyri

Re: How can I do this in Perl?

2011-04-02 Thread John W. Krahn
Wernher Eksteen wrote: Hi, Hello, The Perl script (shown further down below) gives me the following output (without the comments). Please note that this is not the complete output, I only show the necessary detail for sake of clarity. emcpowerasdbd sddg sdfj sdhm #<- [1st forea

Re: How can I do this in Perl?

2011-04-02 Thread Wernher Eksteen
Hi, The Perl script (shown further down below) gives me the following output (without the comments). Please note that this is not the complete output, I only show the necessary detail for sake of clarity. emcpowerasdbd sddg sdfj sdhm # <- [1st foreach loop output] emcpoweraa s

Re: perl dd

2011-04-02 Thread Peter Scott
On Fri, 01 Apr 2011 10:51:58 +0300, Shlomi Fish wrote: > 2. The problem with 1E9 is that I think it's a floating point number > (though Perl 5 may have some intelligence there). Not sure it matterns a > lot for Perl but if you do something like 1.27E9 you may get weird > side-effects due to: Yup,

Mix of English and Cyrillic Characters

2011-04-02 Thread Barry-Home
Hi, I am working on a script where I have strings that contain an English string followed by the Cyrillic translation. For now, I am looking for a way to strip out the Cyrillic characters and and leave the English ones. I have tried a simple regular expression such as : $text =~ s/Surname.+/