Regexp help please

2006-07-13 Thread Brano Gerzo
hello all! I'd like to request for help with this regexp. I want match these examples: word word 3 word word 3 word word en 3 word word en,pt 3 word word en,pt 1cd ok, here is regexp I wrote:

Re: Regexp help please

2006-07-13 Thread Brano Gerzo
Dr.Ruud [DR], on Thursday, July 13, 2006 at 21:05 (+0200) made these points: DR I don't understand what you try to match with [\w\s\+:]+. It matches DR any series of characters that belong to the character class containing DR [[:word:]], [[:space:]], a plus and a colon. So a b :c would match.

Re: Regexp help please

2006-07-13 Thread Brano Gerzo
D. Bolliger [DB], on Thursday, July 13, 2006 at 21:48 (+0200) typed the following: DB This data format is ambigous, consider: I know, but I count with it in this case. This regexp is used only for commands to bots, so there should be some small errors in parsing :) if it passes to language,

Re: Regexp help please

2006-07-13 Thread Brano Gerzo
Dr.Ruud [DR], on Thursday, July 13, 2006 at 21:05 (+0200) wrote these comments: as you helped me much, here is example of RE: my $re =

Re: encoding of source file

2006-04-19 Thread Brano Gerzo
M. Kristall [MK], on Monday, April 17, 2006 at 19:38 (-0400) wrote about: MK Try Encode::Guess MK http://search.cpan.org/~dankogai/Encode-2.15/lib/Encode/Guess.pm I forgot to thank you, so thanks! I knew there must be something already done. :) -- www.opensubtitles.org - biggest open DivX

encoding of source file

2006-04-17 Thread Brano Gerzo
Hi all, I have bunch of TXT files. I'd like to know theirs encoding, for example CP-1251 ISO-8859-1 ISO-8859-2 UTF-8 and so on. Exists some module for this (or something on *nix, it could be exe too) ? Thanks a lot /brano -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

mysql server has gone away

2006-03-03 Thread Brano Gerzo
Hi all, I'm programming one web application, and there are some Perl issues. I am on FreeBSD, using mod_perl 2.0 and my scripts looks like: main_script: use strict; use warnings; ... ... use lib '/home/hosting/foo.bar/public_html/libs/perl'; use OpenSubtitles::Help; ... (

Re: Create thumbnail from webpage

2006-01-29 Thread Brano Gerzo
Mike Blezien [MB], on Sunday, January 29, 2006 at 16:17 (-0600) wrote the following: MB what exactly would be the best pharse to Google for this?? webthumb -- ...m8s, cu l8r, Brano. [Serology: Study of English Knighthood] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: somthing wrong with my codes???

2006-01-21 Thread Brano Gerzo
chen li [cl], on Friday, January 20, 2006 at 21:33 (-0800 (PST)) wrote these comments: cl one array and xyz, 9 and 0 into another array. But I cl don't get what I expect. I just wonder what is wrong? nothing is wrong, you wrote good script. But if you want print values, use at beginning: $|++;

Re: WWW::Mechanize question

2006-01-17 Thread Brano Gerzo
Randal L. Schwartz [RLS], on , , 2006 at 09:01 (-0800) contributed this to our collective wisdom: Ing Problem comes, when I want to cache webpage with forms (POST). RLS This is strange. POST requests are not necessarily idempotent, and this is RLS why caches never cache them. Perhaps you want

Re: formatting text

2005-11-29 Thread Brano Gerzo
Ing. Branislav Gerzo [IBG], on Tuesday, November 29, 2005 at 17:14 (+0100) wrote: IBG And I'd like to print: IBG |Name: Branislav | IBG |Surname.: Gerzo | IBG 26.^

ASCII - ASCII printable

2005-11-26 Thread Brano Gerzo
Hi all, I need convert all ASCII unprintalbe to ASCII printable (if possible) according to (http://en.wikipedia.org/wiki/ASCII), tell me please, what should I use/look for. Thanks a lot. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ASCII - ASCII printable

2005-11-26 Thread Brano Gerzo
Xavier Noria [XN], on Saturday, November 26, 2005 at 20:20 (+0100) typed the following: I need convert all ASCII unprintalbe to ASCII printable (if possible) according to (http://en.wikipedia.org/wiki/ASCII), tell me please, what should I use/look for. XN The string \033 would be converted

format to scalar better solution?

2005-11-26 Thread Brano Gerzo
Hello all, I like format function, but I miss output to scalars. write always print to STDOUT, or filehandle, but I need access contents to scalar. I found in docs one solution, but it is not much nice: use Carp; sub swrite { croak usage: swrite PICTURE ARGS unless @_; my $format =

Re: ASCII - ASCII printable

2005-11-26 Thread Brano Gerzo
Xavier Noria [XN], on Saturday, November 26, 2005 at 20:53 (+0100) thinks about: XN Yeah, looks like you need some kind of conversion table, but I still XN do no understand the problem to solve. Can you be more specific? Do XN you have examples of actual inputs and their corresponding

Re: statistics of text

2005-11-02 Thread Brano Gerzo
Shawn Corey [SC], on Wednesday, November 02, 2005 at 10:59 (-0500) thoughtfully wrote the following: SCnext unless /\b$keyword\b/; # skip loop if no keyword yes, thats right, but in my case there will be *always* keyword on line :) Also thanks for all replies, nice examples. --