Re: snmp translate

2007-06-08 Thread Eugene Kosov
Doroshok Stanislav wrote: п'ятниця 08 червень 2007 16:02, Eugene Kosov написав: Doroshok Stanislav wrote: п'ятниця 08 червень 2007 15:31, Jeff Pang написав: Doroshok Stanislav 写道: hi all I need snmptranslate analog in perl i use Net::SNMP module but can't find this method. T

Re: snmp translate

2007-06-08 Thread Eugene Kosov
Doroshok Stanislav wrote: п'ятниця 08 червень 2007 15:31, Jeff Pang написав: Doroshok Stanislav 写道: hi all I need snmptranslate analog in perl i use Net::SNMP module but can't find this method. Try cpan: http://search.cpan.org/~gbarr/libnet-1.21/Net/SMTP.pm SMTP? SNMP - Simple Network M

Re: Error with Html code

2007-05-29 Thread Eugene Kosov
Thanks . I have a another struggling end . I need to filter the result by a specific file extension (like pdf). how can i do it ? i need to check after upload a file that it should be pdf. if it is not then i need to display an error that only pdf files need to be uploaded. regards alma "p

Re: Error with Html code

2007-05-29 Thread Eugene Kosov
Alma Tirkey wrote: I have a problem with uploading a files in apache webserver. Its not giving me an error but i am not getting the desired result what i want. My requirement is to save only the pdf files to the a directory . what i am testing is how to get only the filename . #!/usr/bin/perl

Re: URL too long

2007-03-09 Thread Eugene Kosov
Tom Smith wrote: Tatiana Lloret Iglesias wrote: Yes! that's the problem, GET method doesnt allow very very long url's ... how can I use POST from Perl code? do you have any example? GET and POST are part of XHTML, not Perl. Realy? :) I thought GET and POST are methods of HTTP protocol :) --

Re: printf

2007-01-18 Thread Eugene Kosov
Beginner wrote: Hi all, Sorry I am sure this is a lame question. I want to print out some column (with heading) and I want them evenly spaced. I know this is a printf but the format eludes me. printf("%c12", $var); # prints $var12$var12 Try %12c (or %12s) instead of %c12 above. -- To u

binmode, UTF8

2007-01-18 Thread Eugene Kosov
000 d0 a2 d0 b5 d1 81 d1 82 0a |Тест.| 0009 $ perl test.pl < input A: d0a2d0b5d181d1820a B: d0a2d0b5d181d1820a C: c390c2a2c390c2b5c391c281c391c2820ad0a2d0b5d181d1820a -- BR, Eugene Kosov smime.p7s Description: S/MIME Cryptographic Signature

Re: Yet another parsing question

2006-12-15 Thread Eugene Kosov
wood 2 could a wood 3 chuck 4 chuck so I want to grab all data between 1 - 2 and 3 - 4 2 different variables, can this be done? Yes :-) Use capturing parenthesis for that, see perldoc perlre Dani ($var1, $var2) = $str =~ /1(.*?)2.*?3(.*?)4/; -- BR Eugene Kosov -- To unsubscribe, e-mail

Re: Line ending with Gary"^M on UNIX

2006-12-14 Thread Eugene Kosov
Oleg V. Volkov wrote: "Ron Wingfield" <[EMAIL PROTECTED]> wrote: [skip] while (defined($line = )) { $line =~ s/\r//g; printf OUTFILEHANDLE ("%s"), $line; } Why not this one? $line =~ s/\r$//; I didn't see anything about removing ^M anywhere in original post, only at end of line

Re: scalar in array name?

2006-10-08 Thread Eugene Kosov
I think eval can help you... See perldoc -f eval. Kenton Brede wrote: > I've done some searching and can't find an answer to this. I'd like > to use a scalar variable in an array name. Something like "@$scalar" > I've tried different permutations like "[EMAIL PROTECTED]", "@"$scalar"" > "@\$sca

Re: Any PERL Decompiler / code ?

2006-06-24 Thread Eugene Kosov
Mr. Shawn H. Corey пишет: BTW, there is no such thing as a decompiler. At best you may find a disassembler. That is a program that takes a binary and produces the assembler code from it. How about Java decompiler? ;) -- BR, Eugene Kosov -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Perl File::Copy to Samba share

2006-05-12 Thread Eugene Kosov
John W. Krahn wrote: Following is the subroutine for moving the file sub copyFile($$) { Your subroutine _moves_ files, it does not _copy_ files, so why is it named 'copyFile'? You really, really shouldn't use prototypes. If you need to verify the number of arguments you could do somethi

Problem while using Lingua::Wordnet...

2006-04-25 Thread Eugene Kosov
le to load $datapath/lingua_wordnet.index: $!"; ... Note that $! was empty and there's no error description after colon. Any thoughts? Thanks in advance! -- Regards, Eugene Kosov -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>