Re: Finding if a line contains Hebrew characters in perl

2013-04-26 Thread Gabor Szabo
On Thu, Apr 25, 2013 at 6:05 PM, ik ido...@gmail.com wrote: try this #!/usr/bin/env perl -w # use v5.14; use utf8; my $text = 'שלוabv'; if ($text =~ /^[\x{5D0}-\x{5ea}]{3}/) { say yes; } else { say no; } I'd probably use \p{IsHebrew} or \p{InHebrew} instead of the hexa code.

Re: Finding if a line contains Hebrew characters in perl

2013-04-26 Thread ik
On Fri, Apr 26, 2013 at 9:24 AM, Gabor Szabo szab...@gmail.com wrote: On Thu, Apr 25, 2013 at 6:05 PM, ik ido...@gmail.com wrote: try this #!/usr/bin/env perl -w # use v5.14; use utf8; my $text = 'שלוabv'; if ($text =~ /^[\x{5D0}-\x{5ea}]{3}/) { say yes; } else {

Re: OT: mailbox generator

2013-04-26 Thread Oleg Goldshmidt
Oleg Goldshmidt p...@goldshmidt.org writes: One can set up several mail accounts, devise such a script (my friend's story proves it is possible), generate a random delay and run it off at(1) [rather than cron, to avoid regularity], rotating sender addresses in the process. Then fetchmail from

Re: OT: mailbox generator

2013-04-26 Thread Nadav Har'El
On Thu, Apr 25, 2013, Tzafrir Cohen wrote about OT: mailbox generator: Off topic, but may be interesting: I heard recently that it is now legal for the security checks in the Ben Gurion airport to require that I show my mail account. I don't understand how they could possibly enforce this.

Re: OT: mailbox generator

2013-04-26 Thread Nadav Har'El
On Thu, Apr 25, 2013, Oleg Goldshmidt wrote about Re: OT: mailbox generator: One can set up several mail accounts, devise such a script (my friend's story proves it is possible), generate a random delay and run it off at(1) [rather than cron, to avoid regularity], rotating sender addresses in

Re: OT: mailbox generator

2013-04-26 Thread Oleg Goldshmidt
Nadav Har'El n...@math.technion.ac.il writes: It isn't bull, especially if you're innocent. Sure, if you're a terrorist and your only email account is full of terrorist plans, you'd rather be deported then surrender your account. But if you're an innocent tourist (or business man), who