Pattern matching

2007-02-20 Thread Dharshana Eswaran
Hello All, I have quite a number of strings which has some typical matches between them. I am unable to come up with a generalised pattern for them. Few among those strings are like this: TAPI_VOICE_NOTIFY_OTHERAPP_JOINING_MSGID TAPI_TTY_NOTIFY_TTY_TONE_MSGID TAPI_NOTIFY_CALL_LINE_INFO_MSGID TA

Re: Is there any way to use C header files in perl program?

2007-02-20 Thread Dharshana Eswaran
On 2/20/07, Peter Scott <[EMAIL PROTECTED]> wrote: On Tue, 20 Feb 2007 12:19:22 +0530, Dharshana Eswaran wrote: > Hello All, > > I need to use a C header file in Perl program in Unix. > > Is it possible to use the header files from perl in any way? I do not want > to use any modules for the sam

Re: Installing modules locally, how to

2007-02-20 Thread Mumia W.
On 02/20/2007 04:17 PM, Moon, John wrote: Thank you, Mumia W. The following "ran"... I would have preferred to have installed at ~/cgi-bin/Library _not_ at ~/cgi-bin/Library/lib/perl5/site_perl/5.8.5... following is the results. Now when I try to install Ajax it still says it can't find Class

ExtUtils::MakeMaker and packaging things

2007-02-20 Thread Daniel Kasak
Hi all. I'm writing an app in Gtk2-Perl. I want to include things like glade XML files, and images. How do I go about that? I would like to be able to do something like create an app folder: /usr/share/some_application and dump stuff in there. Can I do that? How? Dan -- To unsubscribe, e-mail

Re: perl6::form simple reporting

2007-02-20 Thread Daniel Kasak
Ken Foskey wrote: > I have a script that takes an sql and formats into a report, simple > stuff. > > I have a product that when it changes I want a sub heading. I have > coded this. > > if( $prior_product ne $sql_product ) { > print form... > $prior_product = $sql_product; > } > > Is there

Re: system and list of arguments

2007-02-20 Thread Mathew Snyder
Tom Phoenix wrote: > On 2/20/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: > >> shredder --force --plugin 'Tickets=arg1,desc;arg2,desc;arg3,desc' >> >> I can see that the system call would look like >> system("shredder","--force","--plugin" >> for the first section there, however, would the last pa

Re: system and list of arguments

2007-02-20 Thread Tom Phoenix
On 2/20/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: shredder --force --plugin 'Tickets=arg1,desc;arg2,desc;arg3,desc' I can see that the system call would look like system("shredder","--force","--plugin" for the first section there, however, would the last part be "\'Tickets==arg1,desc;arg2,de

system and list of arguments

2007-02-20 Thread Mathew Snyder
I have a script that uses 'system' to call an external command that has a long list of arguments. I understand that I can use 'system' with a list of parameters and arguments the first being the command to call and the following to be the arguments for the command. I'm wondering though, what I sh

RE: Installing modules locally, how to

2007-02-20 Thread Moon, John
Thank you, Mumia W. The following "ran"... I would have preferred to have installed at ~/cgi-bin/Library _not_ at ~/cgi-bin/Library/lib/perl5/site_perl/5.8.5... following is the results. Now when I try to install Ajax it still says it can't find Class::Accessor I tried perl -I ~/cgi-bin/Library

Re: Word counts

2007-02-20 Thread David Moreno Garza
Mike Blezien wrote: > thx's, looks like a good place to start w/PDF files, now to find some info > on DOC files :) This might help: http://www.wellho.net/forum/Perl-Programming/convert-a-MS-Word-doc-into-multiple-HTML-pages.html -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net

Re: Word counts

2007-02-20 Thread Mike Blezien
David, - Original Message - From: "David Moreno Garza" <[EMAIL PROTECTED]> To: "Mike Blezien" <[EMAIL PROTECTED]> Cc: "Perl List" Sent: Tuesday, February 20, 2007 2:55 PM Subject: Re: Word counts Mike Blezien wrote: we need to do read uploaded files(PDF & DOC files types), and coun

Re: Installing modules locally, how to

2007-02-20 Thread Mumia W.
On 02/20/2007 10:41 AM, Moon, John wrote: Looking for help installing modules to a "local" library... http://search.cpan.org/~jhi/perl-5.8.0/pod/perlmodinstall.pod says to do the install one way while README for the module gives other instructions. CPAN says a) Decompress, b) Unpack, c) Build,

Re: Word counts

2007-02-20 Thread David Moreno Garza
Mike Blezien wrote: > we need to do read uploaded files(PDF & DOC files types), and count the > words in these type of files. what would be the best approach to do this, > and specific module(s) that can accomplish this fairly easily ? Just need > to open the files when uploaded to do a word cou

Word counts

2007-02-20 Thread Mike Blezien
Hello, we need to do read uploaded files(PDF & DOC files types), and count the words in these type of files. what would be the best approach to do this, and specific module(s) that can accomplish this fairly easily ? Just need to open the files when uploaded to do a word count, if this is poss

MIME::Lite

2007-02-20 Thread Matt Herzog
Hi All. I need some help with the below. The script works fine except that for most recipients or mailers/clients the strings of text so not alternate with the image files. In their mailers they see: Number of users logged-in for kaplanfinancial: Number of users logged-in for brun

RE: Re: Installing modules locally, how to

2007-02-20 Thread Moon, John
-Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Lin Sent: Tuesday, February 20, 2007 1:09 PM To: beginners@perl.org Subject: Re: Installing modules locally, how to Hi John, > SUN83-PRODWEB>perl Makefile.PL > SUN83-PRODWEB>/usr/ccs/bin/make You have to be root (or use

Re: Installing modules locally, how to

2007-02-20 Thread Lin
Hi John, SUN83-PRODWEB>perl Makefile.PL SUN83-PRODWEB>/usr/ccs/bin/make You have to be root (or user with similar rights) to do this. So try (if you have the sudo package installed): $ SUN83-PRODWEB>sudo perl Makefile.PL $ SUN83-PRODWEB>sudo /usr/ccs/bin/make Or get root (superuser) prior to

P0fq.pl and pack/unpack

2007-02-20 Thread Vincent Li
I am running passive OS fingerprinting tool p0f http://lcamtuf.coredump.cx/p0f.shtml as: p0f -Q /var/run/p0f.sock -0 'dst port 25' >> /dev/null & then run a test script p0fq.pl from the p0f source package. ./p0fq.pl /var/run/p0f.sock src_host 0 dst_host 25 The p0fq.pl test script works on

Installing modules locally, how to

2007-02-20 Thread Moon, John
Looking for help installing modules to a "local" library... http://search.cpan.org/~jhi/perl-5.8.0/pod/perlmodinstall.pod says to do the install one way while README for the module gives other instructions. CPAN says a) Decompress, b) Unpack, c) Build, and d) Install. The Build step is different

Re: match string with slashes

2007-02-20 Thread Jocelyn Kirshenbaum
Tom, Thanks. I chomped $today, and that fixed the problem. Chomping the variable $today made the match succeed, since now the string did not have to match against the newline that was at the end of $today. Also, thanks for the tip about finding the size of the array. Jocelyn On 2/17/07, Jocelyn

Re: Is there any way to use C header files in perl program?

2007-02-20 Thread Peter Scott
On Tue, 20 Feb 2007 12:19:22 +0530, Dharshana Eswaran wrote: > Hello All, > > I need to use a C header file in Perl program in Unix. > > Is it possible to use the header files from perl in any way? I do not want > to use any modules for the same. > > I do not want to enable the perl program to

Re: sendmail

2007-02-20 Thread Jeff Pang
> >I need to send mail to all users defined in one array. I tried foreach >loop but what is happening is it is sending mail to only first user in >the array. not sending mails to rest of the users. > >Is there any way to send a mail to all users in array in one shot. I am >using sendmail 2.09 m

RE: sendmail

2007-02-20 Thread Nagasamudram, Prasanna Kumar
-Original Message- From: Sayed, Irfan (Irfan) [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 20, 2007 4:07 PM To: beginners@perl.org Subject: sendmail Hi All, I need to send mail to all users defined in one array. I tried foreach loop but what is happening is it is sending mail to

sendmail

2007-02-20 Thread Sayed, Irfan \(Irfan\)
Hi All, I need to send mail to all users defined in one array. I tried foreach loop but what is happening is it is sending mail to only first user in the array. not sending mails to rest of the users. Is there any way to send a mail to all users in array in one shot. I am using sendmail 2.09 mo

Re: Is there any way to use C header files in perl program?

2007-02-20 Thread Xavier Noria
On Feb 20, 2007, at 7:49 AM, Dharshana Eswaran wrote: I need to use a C header file in Perl program in Unix. Is it possible to use the header files from perl in any way? I do not want to use any modules for the same. I do not want to enable the perl program to call a routine in C library