RE: TK

2003-09-19 Thread NYIMI Jose (BMB)
Are limitations of Perl/Tk listed some where ? José. -Original Message- From: zentara [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 5:27 PM To: [EMAIL PROTECTED] Subject: Re: TK On Fri, 19 Sep 2003 08:13:19 -0400, [EMAIL PROTECTED] (Paul Kraus) wrote: >I saw someone menti

RE: Split based on length

2003-09-19 Thread NYIMI Jose (BMB)
I need some explanation on following: 1. my skill of perl tells me so far to handle exceptions and write : open(FH,$file) || die "can not open $file : $! \n"; I've tried your code with a wrong file_name and got following message: "Can't open in.txt1: No such file or directory at parser2.pl line 22

RE: instance variables?

2003-09-19 Thread NYIMI Jose (BMB)
If you are tired typing "my $self = shift;" There are modules out there that can build class for you. http://search.cpan.org/search?query=Class%3A%3AStruct&mode=module I'm using Class::Struct module coming with perl. José. -Original Message- From: Kevin Pfeiffer [mailto:[EMAIL PROTECTED]

RE: Split based on length

2003-09-19 Thread NYIMI Jose (BMB)
IMHO $string =~ /.{1,$len}/g; Is the best suggestion i have seen so far ;) I have an other request : "code review" :-) Below is my final code. I'm sure that you guys will find Some better style to write it ... #!/usr/local/bin/perl -w use strict; #-- #Global variables #---

RE: Split based on length

2003-09-17 Thread NYIMI Jose (BMB)
Do you see any pitfall if i remove the 'm' on the regexp And use $string =~ /.{1,$len}/g; instead ? I have tried without the 'm', it works as well :-) Thanks to all of you by the way... José. -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 20

Split based on length

2003-09-17 Thread NYIMI Jose (BMB)
Hello, I have a string which i know, it is a concatenation of "fixed length of substring". I would like to split it based on this known length and get as result An array containing each substring. Let say the known length is 2. If the string is 'abcd', my array should be ('ab', 'dc') And if my st

RE: any easy library to create a thumbnail

2003-09-12 Thread NYIMI Jose (BMB)
Try ImageMagick module. http://imagemagick.sourceforge.net/ http://search.cpan.org/author/JCRISTY/PerlMagick-5.57/Magick.pm José. -Original Message- From: Ramprasad A Padmanabhan [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 4:58 PM To: [EMAIL PROTECTED] Subject: any easy l

RE: packages object oriented

2003-09-12 Thread NYIMI Jose (BMB)
Ch3 of "OO Perl" book is free from http://www.manning.com/getpage.html?project=conway&filename=Chapters.html José. -Original Message- From: Eric Walker [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 4:33 PM To: perlgroup Subject: packages object oriented Does anyone have a

RE: Matching a section of test

2003-09-08 Thread NYIMI Jose (BMB)
+1 to Bob; José. -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 5:29 PM To: 'Akens, Anthony'; [EMAIL PROTECTED] Subject: RE: Matching a section of test Akens, Anthony wrote: > Sorry for the first post, didn't mean this as > a reply. >

RE: Killing a windows process using Perl

2003-09-02 Thread NYIMI Jose (BMB)
Try: Win32::Process I never used so far myself but can help for what you want. http://search.cpan.org/author/GSAR/libwin32-0.191/Process/Process.pm -Original Message- From: Anthony J Segelhorst [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 1:50 PM To: [EMAIL PROTECTED] Subje

RE: looking at a string

2003-09-02 Thread NYIMI Jose (BMB)
$in=12345678.90; $out=&big_money($in); sub big_money { $number = sprintf " %.2f", shift @_; 1 while $number =~ s/^(-?\d+) (\d\d\d) /$1, $2/; $number=~ s/^(-?)/$1\$/; $number; } -Original Message- From: Ronen Kfir [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003

RE: system call

2003-08-29 Thread NYIMI Jose (BMB)
perldoc -q backticks José. -Original Message- From: Imtiaz Ahmad [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 10:48 PM To: [EMAIL PROTECTED] Subject: system call Hi- Can someone please tell me how do I modify following line so that the result gets stored in the var. $c

RE: Graphing/Plotting over time

2003-08-29 Thread NYIMI Jose (BMB)
Found interesting info from here : http://www.manning.com/getpage.html?project=verbruggen&filename=source.html Others are welcome :-) José. -Original Message- From: NYIMI Jose (BMB) Sent: Friday, August 29, 2003 10:44 AM To: K Old; Akens, Anthony Cc: [EMAIL PROTECTED] Subject

RE: Graphing/Plotting over time

2003-08-29 Thread NYIMI Jose (BMB)
Cool ! I was just dealing with following needs: * parse a text files on daily basis * put the result into database * buit a web application upon above database * provide the client a web form where he can choose which graph to see * on submit, connect to database, plot the graph and render it to

RE: DynaLoader with nonstandard lib location

2003-08-28 Thread NYIMI Jose (BMB)
May be LD_LIBRARY_PATH (environment variable) setting problem. Try to add your "external C library" in it before running your perl script. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/lwire/perllib/clib HTH, José. -Original Message- From: Reid Beels [mailto:[EMAIL PROTECTED] Sent: Th

RE: only first checked item passed

2003-08-22 Thread NYIMI Jose (BMB)
Try (@rows)=$sth->fetchrow_array; Not @rows=$sth->fetchrow_array; José. -Original Message- From: Prachi Shah [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 11:06 PM To: [EMAIL PROTECTED] Subject: only first checked item passed Hi all, I have a CGI script which does a selec

RE: Tk mailing list

2003-08-21 Thread NYIMI Jose (BMB)
http://lists.perl.org/showlist.cgi?name=ptk José. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 4:32 PM To: [EMAIL PROTECTED] Subject: Tk mailing list I want to deal with the Tk. Is there any relevant mailing list to gain informat

RE: Last value in a array?

2003-08-14 Thread NYIMI Jose (BMB)
C:\>perldoc -f pop pop ARRAY pop Pops and returns the last value of the array, shortening the array by one element. Has an effect similar to $ARRAY[$#ARRAY--] If there are no elements in the array, returns the undefined value (althou

RE: get http through a proxy authentication

2003-08-14 Thread NYIMI Jose (BMB)
Try use LWP::UserAgent; $ua = LWP::UserAgent->new; $ua->proxy(['http', 'ftp'] => 'http://proxy.mydomain:port'); $req = HTTP::Request->new('GET',"http://www.perl.com";); $req->proxy_authorization_basic("username", "password"); $res = $ua->request($req); print $res->content if $res->is_success

RE: Installing Modules

2003-08-14 Thread NYIMI Jose (BMB)
For installations on Windows, read http://aspn.activestate.com/ASPN/docs/ActivePerl/faq/ActivePerl-faq2.html José. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 12:04 PM To: [EMAIL PROTECTED] Subject: Installing Modules Hi all i am n

RE: How do I return more than 1 array from a sub routine ?

2003-08-14 Thread NYIMI Jose (BMB)
In your subroutine, return reference of each array (or hash) like this: sub my_sub{ #blah return ([EMAIL PROTECTED],[EMAIL PROTECTED]); } Calling: my ($array_ref1,$array_ref2)=&my_sub(); More Info ? perldoc perlref José. -Original Message- From: T.S.Ravi Shankar [mai

RE: :Application

2003-08-14 Thread NYIMI Jose (BMB)
larkson [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 7:33 PM To: NYIMI Jose (BMB); [EMAIL PROTECTED] Subject: RE: :Application NYIMI Jose (BMB) <[EMAIL PROTECTED]> wrote: : : I'm wondering why the CGI::Application module is not : so popular in Perl's world like it is

RE: CPAN Module delivers error . . .

2003-08-14 Thread NYIMI Jose (BMB)
Getopt is a standard module you don't need to install it since it comes with perl itself ... I saw : "gcc: not found" And it seems that you are on Windows OS ? Read this to get started http://jenda.krynicky.cz/perl/CPAN&ppm.html José. -Original Message- From: Trina Espinoza [mailto:[EMAI

RE: looking for a better way...

2003-08-14 Thread NYIMI Jose (BMB)
"q4171","(08/11/03 23:30:48)","" Makes me thing of CSV (comma separated value). You may need to check CPAN for CSV module if You have to parse a lot of such string from a given file. José. -Original Message- From: Jerry Preston [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 10:

RE: DBI.pm

2003-08-14 Thread NYIMI Jose (BMB)
1. First of all upgrade your perl it's too old (perl is now up to 5.8). 2. to got http://www.activestate.com/Products/Download/Download.plex?id=ActivePerl and click on MSI 3. do not forget to set properly your PATH to contain C:\Perl\bin if you have installed perl under C:\Perl like most of pe

RE: :Application

2003-08-14 Thread NYIMI Jose (BMB)
... José. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 8:54 PM To: NYIMI Jose (BMB); [EMAIL PROTECTED] Subject: RE: :Application On Wed, 13 Aug 2003 12:33:19 -0500, "Char

RE: Socket

2003-08-14 Thread NYIMI Jose (BMB)
Why not just use FTP (File Transfert Protocol) ? See Net::FTP module José. -Original Message- From: awards [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 6:09 PM To: [EMAIL PROTECTED] Subject: Socket Hi, I would like to know if it is possible to transfer files from one com

CGI::Application

2003-08-14 Thread NYIMI Jose (BMB)
Hello, I'm wondering why the CGI::Application module is not so popular in Perl's world like it is the case for Struts in Java's world. To me, there are both very similar due to the fact that they are serving the same cause : "framework to build reusable web applications". Is that related to TMT

RE: Last value in a array?

2003-08-11 Thread NYIMI Jose (BMB)
Oh! You right Pop will suppress the last value from your array. But my $LastValue = $ARRAY[ $#ARRAY-1 ]; Will not return the last element of the array neither. my $LastValue = $ARRAY[$#ARRAY]; will do it. @ar=qw(1 2 3 4 5); $i=$ar[$#ar-1]; print "$i\n"; $i=$ar[$#ar]; print "$i\n"; Output: 4 5

RE: get http through a proxy authentication

2003-08-07 Thread NYIMI Jose (BMB)
For more info check this: http://search.cpan.org/author/GAAS/libwww-perl-5.69/lwpcook.pod#PROXIES José. -Original Message- From: Darbesio Eugenio [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 5:02 PM To: [EMAIL PROTECTED] Subject: get http through a proxy authentication Hi

RE: connecting oracle

2003-08-04 Thread NYIMI Jose (BMB)
use DBI module. Here some usefull links: http://dbi.perl.org/index.html http://www.saturn5.com/~jwb/dbi-examples.html#connect José. -Original Message- From: Visu [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 7:12 AM To: [EMAIL PROTECTED] Subject: connecting oracle Hi, Kindl

RE: ? thinger

2003-07-30 Thread NYIMI Jose (BMB)
"Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information on it." Samuel Johnson (1709 - 1784) There are a lot of info from perldoc. Type C:\>perldoc perldoc To learn how to use perldoc ;) José. -Original Message- From: [EMAIL PROTECTED] [mailto:[E

RE: ? thinger

2003-07-30 Thread NYIMI Jose (BMB)
) : ($a += 2) That should probably be written more simply as: $a += ($a % 2) ? 10 : 2; <\snip> -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 5:12 PM To: NYIMI Jose (BMB) Subject: RE: ? thinger I don't have ext

RE: ? thinger

2003-07-30 Thread NYIMI Jose (BMB)
Have a look to this : http://www.perldoc.com/perl5.8.0/pod/perlop.html#Conditional-Operator HTH, José. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 5:06 PM To: [EMAIL PROTECTED] Subject: ? thinger I have been noticing the ? used

RE: Help please - still not understanding references I think...

2003-07-30 Thread NYIMI Jose (BMB)
use Data::Dumper; print Dumper($ref); -Original Message- From: Tim Musson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 3:40 PM To: [EMAIL PROTECTED] Subject: Re: Help please - still not understanding references I think... Hey bseel, My MUA believes you used to wri

RE: Deep Copy

2003-07-30 Thread NYIMI Jose (BMB)
There is also a good article on the topic at http://www.stonehenge.com/merlyn/UnixReview/col30.html Now, this simple deep_copy routine will break if there are recursive data pointers (references that point to already seen data higher in the tree). For that, you might look at the dclone method o

RE: search and match

2003-07-25 Thread NYIMI Jose (BMB)
I think he is missing quotes while assigning. $a = abc\/edf\/a #is wrong ! José. -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 1:52 PM To: [EMAIL PROTECTED] Subject: Re: search and match > > "Boon Chong Ang" <[EMAIL PROTECTED]> wrote in messag

RE: telnet problems

2003-07-25 Thread NYIMI Jose (BMB)
Type y :-) No, i don't know how to do that ... -Original Message- From: Miguel Angel Morales [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 12:56 PM To: [EMAIL PROTECTED] Subject: telnet problems Hi all! I open a telnet session to a router for creating IPv6 tunnels. The creating

RE: installing module

2003-07-24 Thread NYIMI Jose (BMB)
Hum! Loadable object? That's because perl is looking for HiRes.so which is missing because you didn't install properly the module. To install a module you should not just create a folder and so forth ... as you did. Better always to follow the make make test, make install In your case this wil

RE: installing module

2003-07-24 Thread NYIMI Jose (BMB)
The SYNOPSIS of lib module is: use lib LIST The LIST stuff is important (LIST != EXPR). So try: use lib qw(/home/sites/prog/www/Module); #or use lib ('/home/sites/prog/www/Module'); Both should work. José. -Original Message- From: awarsd [mailto:[EMAIL PROTECTED] Sent: Thursday, July

RE: modifing and writing to a file

2003-07-24 Thread NYIMI Jose (BMB)
s/a-z/A-Z/g should be s/[a-z]/[A-Z]/g; You also use uc function like this : print BACKUP uc "$_"; #or #print BACKUP uc ; C:\>perldoc -f uc uc EXPR uc Returns an uppercased version of EXPR. This is the internal function implementing the "\U" escape in double-quoted string

RE: delete file

2003-07-11 Thread NYIMI Jose (BMB)
perl -f unlink http://www.perldoc.com/perl5.8.0/pod/func/unlink.html José. > -Original Message- > From: Boon Chong Ang [mailto:[EMAIL PROTECTED] > Sent: Friday, July 11, 2003 10:13 AM > To: [EMAIL PROTECTED] > Subject: delete file > > > Hi, > > My name is Boon Chong. I have question.

RE: Dot Net

2003-07-09 Thread NYIMI Jose (BMB)
Try http://lists.perl.org/showlist.cgi?name=perl.NET José. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 8:53 PM To: [EMAIL PROTECTED] Subject: Dot Net I was told that Perl is portable to the .NET (Dot NET) environment. Does an

RE: silly question

2003-07-09 Thread NYIMI Jose (BMB)
The fact that "you are still a novice in Perl" has nothing to do with socket's notions :) As you will see from defintions sent in previous post sockets are not specifics to Perl you can do "Socket Programming" with any decent programming language (C,Java,PHP,Python etc ..). With Perl, the module IO

RE: DBI->Connect probblem.

2003-07-07 Thread NYIMI Jose (BMB)
Try first to connect without DBI : sqlplus scott/[EMAIL PROTECTED] If success then Try to get more info of failure using trace() function of DBI. use DBI; DBI->trace(2); DBI->connect(...); HTH, José. -Original Message- From: mohini sathe [mailto:[EMAIL PROTECTED] Sent: Monday, July 07,

[OT] 4th of July

2003-07-04 Thread NYIMI Jose (BMB)
To all Perl developers in America Have a GREAT Independence Day. Regards José Nyimi Belgium. DISCLAIMER "This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the

RE: perl redirection

2003-06-25 Thread NYIMI Jose (BMB)
Better if you send some relevant lines of your code :) José. -Original Message- From: Miguel Angel Morales [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 4:40 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: perl redirection It is an IPv6 tunnelbroker, and when the tu

RE: removing a row in a two-dimensional array

2003-06-25 Thread NYIMI Jose (BMB)
perldoc -f delete http://www.perldoc.com/perl5.8.0/pod/func/delete.html delete $array[0];#should delete the first row for example José. -Original Message- From: Sitha Nhok [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 4:10 PM To: [EMAIL PROTECTED] Subject: removing a row in

RE: transactions in perl

2003-06-25 Thread NYIMI Jose (BMB)
Yes, Have a look to this : http://search.cpan.org/src/TIMB/DBI_AdvancedTalk_2002/sld050.htm HTH, José. -Original Message- From: Miguel Angel Morales [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 11:25 AM To: [EMAIL PROTECTED] Subject: transactions in perl Hi All! I have

RE: context, printing, and concatenation

2003-06-24 Thread NYIMI Jose (BMB)
Because in the first statement @array is used in scalar context so it's like you wrote something as [EMAIL PROTECTED]; print $size."\n"; That's why you get the number of items contained in @array which is 3. HTH, José. -Original Message- From: Peter [mailto:[EMAIL PROTECTED] Sent: Tue

RE: Perl Best Practices

2003-06-24 Thread NYIMI Jose (BMB)
Here are some best practices i know: 1. use warnings or -w 2. use strict; Could you extends the list please ? José. -Original Message- From: NYIMI Jose (BMB) Sent: Tuesday, June 24, 2003 8:58 AM To: [EMAIL PROTECTED] Subject: Perl Best Practices Hello, I'm looking for a link

Perl Best Practices

2003-06-24 Thread NYIMI Jose (BMB)
Hello, I'm looking for a link where i can find information about Perl's best practices programming. Thanks in advance. === José Nyimi Mbambi IT Analyst http://www.proximus.be DISCLAIMER "This e-mail and any attachment thereto may contain information which is c

RE: Running Perl programs on a machine that does not have Perl installed

2003-06-24 Thread NYIMI Jose (BMB)
Check out ActiveState's PerlApp that comes with their Perl Dev Kit. It does a very good job of packaging your Perl scripts in a compressed executable that will extract and then run the script without Perl having to be installed on the target machine. There is also a product called perl2exe which

RE: Probably a stupid question

2003-06-20 Thread NYIMI Jose (BMB)
Already discussed in previuos mails. Google the archive at http://groups.google.com/advanced_group_search?group=perl.beginners Search word plx for instance. Result is http://groups.google.com/groups?as_q=plx&safe=images&ie=UTF-8&oe=UTF-8&as_ugroup=perl.beginners&lr=&hl=en This one is interesting

RE: Accessing C/C++ Dlls using perl

2003-06-20 Thread NYIMI Jose (BMB)
Beau, Wouldn't Win32::API be much easier to use than Inline::C ? José. -Original Message- From: Beau E. Cox [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 1:14 PM To: Jenda Krynicky; [EMAIL PROTECTED] Subject: Re: Accessing C/C++ Dlls using perl - Original Message - F

RE: lesson on multi-dimensional hashes?

2003-06-06 Thread NYIMI Jose (BMB)
perldoc perldsc http://www.perldoc.com/perl5.8.0/pod/perldsc.html#HASHES-OF-HASHES Perldoc perlreftut http://www.perldoc.com/perl5.8.0/pod/perlreftut.html HTH, José. > -Original Message- > From: Stuart White [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 05, 2003 4:26 PM > To: [EMAIL

RE: cgi LWP::Simple script and Apache

2003-06-05 Thread NYIMI Jose (BMB)
Here : http://lists.perl.org/showlist.cgi?name=libwww http://lists.perl.org/ José. > -Original Message- > From: Dan Muey [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 04, 2003 4:27 PM > To: Ben Crane > Cc: [EMAIL PROTECTED] > Subject: RE: cgi LWP::Simple script and Apache > > > > >

RE: DBI and Unique Keys

2003-06-03 Thread NYIMI Jose (BMB)
use DBI;use DBD::Oracle; is redundant use DBI; is sufficient. José. > -Original Message- > From: Mark Martin [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 03, 2003 12:47 PM > To: Bob Showalter; [EMAIL PROTECTED] > Subject: Re: DBI and Unique Keys > > > Bob, > here is the code with SQ

RE: catch errors

2003-05-28 Thread NYIMI Jose (BMB)
perldoc -f eval eval{ #your try } if($@){ #your catch } Be aware that eval "" and eval{} don't have the same behavior. José. > -Original Message- > From: Moshe [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 27, 2003 8:27 PM > To: [EMAIL PROTECTED] > Subject: catch error

RE: GetOpt Help

2003-05-28 Thread NYIMI Jose (BMB)
perldoc perlpod or http://www.perldoc.com/perl5.8.0/pod/perlpod.html No i have never used pod to document my code, however many modules from cpan do. Never really wanted till now ;) For the help, i use the here doc as follow for instance : my $helptxt=< -of [-f] [-h] -f force blabla -h display t

RE: Calculate the values of 3 arrays to one

2003-05-28 Thread NYIMI Jose (BMB)
Without any optmisation :), try this: #!/usr/bin/perl -w use strict; use Data::Dumper; my @array1 = ("0", "5", "7"); my @array2 = ("10", "20", "21"); my @array3 = ("2", "25", "4"); my @res=(); my $i; for($i=0;$i<3;$i++){ $res[$i]=$array1[$i] + $array2[$i] + $array3[$i]; } print Dumper([E

FW: OLDB - ODBC

2003-03-24 Thread NYIMI Jose (BMB)
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 4:58 PM To: [EMAIL PROTECTED] Subject: OLDB - ODBC Does this belong in the DBI list? Sorry if the answer is yes. * Hi, We have a problem. We run Perl for Window NT. We

RE: Unix ls -lrt | tail -1 in Perl

2003-03-21 Thread NYIMI Jose (BMB)
> -Original Message- > From: Palmer Greg [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 20, 2003 4:50 PM > To: NYIMI Jose (BMB) > Subject: RE: Unix ls -lrt | tail -1 in Perl > > > $filename = `ls -ltr|tail -1 $DIRECTORY`; > print $filename; Sorry, i didn&

Unix ls -lrt | tail -1 in Perl

2003-03-20 Thread NYIMI Jose (BMB)
Hello, How can I do this unix command in Perl ? : ls -lrt | tail -1 Actually, i would like to get the most recent file from a given directory. Thanks in advance for your input. José. DISCLAIMER "This e-mail and any attachment thereto may contain information which is confidential

RE: Urgent: How do I find real file instead of link

2003-03-19 Thread NYIMI Jose (BMB)
> Maybe it's just me but I have no idea what any of that means. Not just you, me too :) José. > Could you be a little more specific/detailed. Any examples? > > Are you talking about html links or *nix soft and hard links? > > What are you trying to use Perl to do? DISCLAIMER "T

RE: filehandle problem

2003-03-17 Thread NYIMI Jose (BMB)
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, March 17, 2003 5:04 PM > To: [EMAIL PROTECTED] > Subject: filehandle problem > > > How can I see what file handles are pointed at a given file. > I am having a problem where I open, read, and close

RE: How to map hash keys only, not values?

2003-03-13 Thread NYIMI Jose (BMB)
Read this from perldoc C:\WINNT>perldoc -q void Found in C:\Perl\lib\pod\perlfaq6.pod What's wrong with using grep or map in a void context? Both grep and map build a return list, regardless of their context. This means you're making Perl go to the trouble of

RE: Programming a Chat Room (Server Push) & Ideas

2003-03-13 Thread NYIMI Jose (BMB)
Is CGI::Push module what you are looking for ? http://search.cpan.org/author/JHI/perl-5.8.0/lib/CGI/Push.pm José. > -Original Message- > From: Yupapa [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 13, 2003 6:45 AM > To: [EMAIL PROTECTED] > Subject: Programming a Chat Room (Server Pu

RE: Where to use 'use'

2003-03-12 Thread NYIMI Jose (BMB)
There is no added value trying to make a module only available for one subroutine, I'd 'use' them (modules) all at the top of the script. (for readability and maintainance reasons). Try this and note how Data::Dumper module is available from suby, Even though it was 'used' inside subx. #!/usr/bin

RE: getting the number of characters

2003-03-12 Thread NYIMI Jose (BMB)
perldoc -f length #!/usr/bin/perl -w use strict; my $num=123; my $match=length($num); print "$match\n"; # should print 3 __END__ José. > -Original Message- > From: David Gilden [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 12, 2003 5:09 PM > To: [EMAIL PROTECTED] > Subject: ge

RE: CGI:Session

2003-03-11 Thread NYIMI Jose (BMB)
perldoc -q install José. > -Original Message- > From: Xiongfei Wang [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 11, 2003 2:29 PM > To: Wiggins d'Anconia > Cc: [EMAIL PROTECTED] > Subject: Re: CGI:Session > > > Thanks for reponse. > I am very new to perl. > A silly question is wher

RE: CGI:Session

2003-03-11 Thread NYIMI Jose (BMB)
http://search.cpan.org/author/SHERZODR/CGI-Session-3.92/ José. > -Original Message- > From: Xiongfei Wang [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 11, 2003 2:29 PM > To: Wiggins d'Anconia > Cc: [EMAIL PROTECTED] > Subject: Re: CGI:Session > > > Thanks for reponse. > I am very n

RE: Inheritance and clone()

2003-03-11 Thread NYIMI Jose (BMB)
http://search.cpan.org/author/RDF/Clone-0.13/Clone.pm José. > -Original Message- > From: Tom Norwood [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 11, 2003 12:28 PM > To: Wiggins d'Anconia > Cc: [EMAIL PROTECTED] > Subject: RE: Inheritance and clone() > > > I'm looking into writing

RE: DBI and getting values from the DB

2003-03-05 Thread NYIMI Jose (BMB)
Not a OT but there is a good maillist specially for dbi users at http://lists.perl.org/showlist.cgi?name=dbi-users Anyway try this: [snippet of your code with some modif] #The CGI.pm module will take input from the form. use CGI qw(:standard ); my $name=param("name"); #Connecting to DB my $dbh

PowerBuilder and Perl

2003-03-05 Thread NYIMI Jose (BMB)
Hello, I have following architecture: Client:PowerBuilder8 client on Windows2000 (Perl not installed) : almost 200 users. Business:Perl script on Sun Solaris (no Web Server, no Application Server, just a perl script :) ). RDBMS: Oracle Requirements: - Asynchronous communication between "pb clie

RE: Help with learning VB Script (Please don't shout at me)

2003-02-25 Thread NYIMI Jose (BMB)
Look if the archive below contains some interesting info for what you want. HTH, José == THE ARCHIVE From: Ben Crane <[EMAIL PROTECTED]> > Is there a way of using perl's amazing > pattern-matching skills within VB???I find using VB to > query txt files, etc to be more cumbersome and less > frie

RE: Help need in GUI

2003-02-24 Thread NYIMI Jose (BMB)
http://archive.develooper.com/beginners%40perl.org/msg41915.html   HTH,   José. -Original Message-From: Anand Ramakrishna [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 2:33 PMTo: [EMAIL PROTECTED]Subject: Help need in GUI Hello all,    I a

RE: miliseconds

2003-02-21 Thread NYIMI Jose (BMB)
Could you explain what are you trying to do, please ? José. > -Original Message- > From: andres finlandes [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 21, 2003 9:39 AM > To: [EMAIL PROTECTED] > Subject: miliseconds > > > > > Hello. > >Does anybody know how to manage milis

RE: find last entry in a file

2003-02-20 Thread NYIMI Jose (BMB)
> my $prevrec = <>; > my $key = substr($prevrec,9,3); I'd be using split here to avoid hard-coding the string's length my $key=( split(/\s+/,$prevrec) )[1]; > while(<>) { > my $tmp = substr($_,9,3); The same here ... my $tmp=( split/\s+/ )[1]; > next if $key eq $tmp; > print $

RE: Dynamic load of a Perl class

2003-02-20 Thread NYIMI Jose (BMB)
> -Original Message- > From: Olivier Wirz [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 6:02 PM > To: [EMAIL PROTECTED] > Subject: Dynamic load of a Perl class > > > Hello, > > Ich would like to load dynamically a Perl class (late binding). > > For example, if I start

RE: Getting HTML files from remote sites

2003-02-19 Thread NYIMI Jose (BMB)
I'd suggest LWP::Simple. http://search.cpan.org/author/GAAS/libwww-perl-5.69/lib/LWP/Simple.pm HTH, José > -Original Message- > From: dan [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 8:38 PM > To: [EMAIL PROTECTED] > Subject: Getting HTML files from remote sites > >

RE: Finding Duplicates.

2003-02-11 Thread NYIMI Jose (BMB)
> -Original Message- > From: Kipp, James [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 11, 2003 4:25 PM > To: '[EMAIL PROTECTED]'; 'Perl' > Subject: RE: Finding Duplicates. > > > > I have to find duplicate customers in are customer file > (around 60,000 > > customers). The file

RE: How to alarm under 1 second?

2003-02-10 Thread NYIMI Jose (BMB)
This is a FAQ : C:\>perldoc -q alarm Found in C:\Perl\lib\pod\perlfaq8.pod How can I sleep() or alarm() for under a second? If you want finer granularity than the 1 second that the sleep() function provides, the easiest way is to use the select() function as

RE: perl's pattern-matching within VB

2003-02-07 Thread NYIMI Jose (BMB)
Searching from google gives one the following : http://sources.redhat.com/ml/cygwin/2000-07/msg00975.html The seach : http://www.google.be/search?q=Perl+in+VB&ie=UTF-8&oe=UTF-8&hl=nl&meta= HTH, José. > -Original Message- > From: Ben Crane [mailto:[EMAIL PROTECTED]] > Sent: Friday, Febr

RE: remote execution

2003-02-07 Thread NYIMI Jose (BMB)
Net::Telnet module is probably the starting place ... http://search.cpan.org/author/JROGERS/Net-Telnet-3.03/lib/Net/Telnet.pm#SYNOPSIS HTH, José. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 07, 2003 10:05 AM > To: [EMAIL PROTECTED]

RE: Use of uninitialized value in pattern match (m//) at test.pl line 85.

2003-02-01 Thread NYIMI Jose (BMB)
> -Original Message- > From: chad kellerman [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 01, 2003 6:38 PM > To: [EMAIL PROTECTED] > Subject: Use of uninitialized value in pattern match (m//) at > test.pl line 85. > > > Hi guys, > >How can I get around this "warning" > >

RE: Use of uninitialized value in pattern match (m//) at test.pl line 85.

2003-02-01 Thread NYIMI Jose (BMB)
C:\WINNT>perldoc -q warnings Found in C:\Perl\lib\pod\perlfaq7.pod How do I temporarily block warnings? If you are running Perl 5.6.0 or better, the "use warnings" pragma allows fine control of what warning are produced. See the perllexwarn manpage for more de

RE: load modules not in @INC

2003-01-31 Thread NYIMI Jose (BMB)
perldoc lib HTH, José. > -Original Message- > From: Prachi Shah [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 31, 2003 7:50 PM > To: [EMAIL PROTECTED] > Subject: load modules not in @INC > > > Hi, > > I have been using perl on Win32 ssytems so far but now am > switching to Unix

RE: Perl OO - Dynamic method call

2003-01-31 Thread NYIMI Jose (BMB)
Yes ! $obj->$method($args); Seems to be equivalent to this in Java: Object retobj = meth.invoke(methobj, arglist); Like in Perl, "Reflection" is also possible in Java: http://developer.java.sun.com/developer/technicalArticles/ALT/Reflection/index.html Specially the following section interested

RE: Perl OO - Dynamic method call

2003-01-30 Thread NYIMI Jose (BMB)
Just find out that Java provides something similar but not simple (for me :) ) For those who are interested: http://java.sun.com/j2se/1.3/docs/guide/reflection/proxy.html Ok, I stop bothering you all those Java stuff, sorry ;) José. > -Original Message- > From: NYIMI Jose (BMB)

FW: Perl OO - Dynamic method call

2003-01-30 Thread NYIMI Jose (BMB)
Below, an input I have got from dbi-users forum. José. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 5:39 PM To: NYIMI Jose (BMB); [EMAIL PROTECTED] Subject: RE: Perl OO - Dynamic method call IMHO: This is not bad design, is

RE: Perl OO - Dynamic method call

2003-01-30 Thread NYIMI Jose (BMB)
> -Original Message- > From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 3:12 PM > To: [EMAIL PROTECTED] > Subject: Re: Perl OO - Dynamic method call > > > From: "NYIMI Jose (BMB)" <[EMAIL PROTECTED]> > > Thi

Perl OO - Dynamic method call

2003-01-30 Thread NYIMI Jose (BMB)
This is a little bit Out of Topic but if somebody can give input I will greatly appreciate! I know that in Perl OO the name of a method can be a variable. Which end up with code like this: my $obj= new MyClass; #here the thing $obj->$method(); $method var holding the name of my method. I would

RE: XML -> Perl-variables using XML::Parser

2003-01-29 Thread NYIMI Jose (BMB)
Give a look to this : http://www.xml.com/pub/a/2001/02/14/perlsax.html José. > -Original Message- > From: Nils-Anders Persson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 29, 2003 10:09 AM > To: [EMAIL PROTECTED] > Subject: XML -> Perl-variables using XML::Parser > > > Hello

RE: Concurrency problem

2003-01-28 Thread NYIMI Jose (BMB)
Your input is appreciated ! José. > -Original Message- > From: david [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 27, 2003 8:16 PM > To: [EMAIL PROTECTED] > Subject: RE: Concurrency problem > > > Nyimi Jose wrote: > > > > > #!/usr/bin/perl -w > > use strict; > > use Proc::Proce

RE: Concurrency problem

2003-01-27 Thread NYIMI Jose (BMB)
> -Original Message- > From: Enric Roca [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 27, 2003 4:09 PM > To: NYIMI Jose (BMB); Beginners Perl > Subject: RE: Concurrency problem > > > José, > > Thanks for the info, but forget that I'm using pi

RE: Concurrency problem

2003-01-27 Thread NYIMI Jose (BMB)
Also communicating applications via XML sounds like a job for SOAP ... http://cookbook.soaplite.com/#soap%20cookbook José. > -Original Message- > From: Enric Roca [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 27, 2003 12:21 PM > To: Beginners Perl > Subject: Concurrency problem >

RE: Concurrency problem

2003-01-27 Thread NYIMI Jose (BMB)
Sorry :) but your script seems not doing what you explained above. I have the impression that your problem is not related to a concurrency problem. Could you send a more detailed code, please? José. Anyway, here some reads from Perl Cookbook : 16.11. Making a Process Look Like a File with Named

RE: deleting files

2003-01-21 Thread NYIMI Jose (BMB)
C:\>perldoc -f unlink unlink LIST unlink Deletes a list of files. Returns the number of files successfully deleted. $cnt = unlink 'a', 'b', 'c'; unlink @goners; unlink <*.bak>; Note: "unlink" will not delete director

RE: Path to script

2003-01-21 Thread NYIMI Jose (BMB)
> -Original Message- > From: Brian Ling [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 21, 2003 10:59 AM > To: NYIMI Jose (BMB); Mark Goland > Cc: perl > Subject: RE: Path to script > > > Thanks for that, > > I'll go with the File::Basename

<    1   2   3   >