parsing Apache2 access log

2004-04-09 Thread Andrew Gaffney
I maintain the Perl CGI/mod_perl side of a website, and someone else maintains the static HTML side. Well, the htdocs dir has gotten very messy. Because of things I've done with CGI/mod_perl/Mason, there are many static pages that are no longer used. I want to write a Perl script that will parse

Re: Solve equations ...

2004-04-09 Thread WilliamGunther
In a message dated 4/9/2004 12:47:13 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: >Hi, > >I would like to solve a system of equations for >example a system 6x6 with perl. But I really don't >know how to do it. First is it possible and then if >yes how? > >Thank you, > >Romain I wrote a mod

Re: determining size of array through reference

2004-04-09 Thread Adam
I guess you could always dereference the array then find its size. my(@sample, $ref, @de_ref); # Original array. @sample = ('sample', 'sample'); # Make reference to original array. $ref = [EMAIL PROTECTED]; # De-reference the original array. @de_ref = @$ref; # Get the size from the reference. pri

Re: What is happening here

2004-04-09 Thread James Edward Gray II
On Apr 9, 2004, at 3:52 PM, WC -Sx- Jones wrote: # WARNING: This is a very basic question - Maybe only the beginners should answer it? Spoiler Warning! Stop reading here, if you want to solve it yourself... #! perl use strict; use warnings; my ($first, $last, $out) = '';

What is happening here

2004-04-09 Thread WC -Sx- Jones
# WARNING: This is a very basic question - Maybe only the beginners should answer it? #! perl use strict; use warnings; my ($first, $last, $out) = ''; while (<>) { if (/^-BEGIN/ .. /^-END/) { if (/^-BEGIN/) { $fir

Solve equations ...

2004-04-09 Thread Romain Groleau
Hi, I would like to solve a system of equations for example a system 6x6 with perl. But I really don't know how to do it. First is it possible and then if yes how? Thank you, Romain Höstrusk och grå moln - köp en resa till solen på Yahoo! Resor på adressen http://se.docs.yahoo.com/travel/index

RE: Help with the logic of my structure?

2004-04-09 Thread Wiggins d Anconia
Please bottom post... > Okay, I cleaned it up, used strict, warnings and diagnostics which helped me > declare my variables. The code works for 1 switch in the switch file. > Sort of... You have declared your variables, all at the top which defeats what 'strict' will provide. Essentially you ar

RE: Help with the logic of my structure?

2004-04-09 Thread arichmond(contr-ird)
Okay, I cleaned it up, used strict, warnings and diagnostics which helped me declare my variables. The code works for 1 switch in the switch file. I have only been using PERL seriously for a couple of months and I think my logic is good because when the switch file has: X.x.x.12,-c ,1.3.6.1.2.1.1

RE: Help with the logic of my structure?

2004-04-09 Thread arichmond(contr-ird)
Thanks I will do that and see what I get. Rich Richmond RS Information Systems Systems/Network Analyst, DARPA (W) 703-526-4012 (C) 703-946-3381 -Original Message- From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 10:31 AM To: arichmond(contr-ird); '[EMAIL

Re: Help with the logic of my structure?

2004-04-09 Thread Wiggins d Anconia
> > I am using snmp to walk a couple of tables on some switches to output a list > of mac to port numbers. It works fine when using only 1 switch, when I put > multiple switches in the list to walk, the output gets messed up showing > multiple ports and or the same port but with different hosts.

Re: installing perl module for mysql driver

2004-04-09 Thread arichmond(contr-ird)
Title: Message I believe I had the same problem as you, based off two identical RedHat 9 boxes I have except for mysql, the difference is in the /etc/ld.so.conf   mysql added: /usr/kerberos/lib/usr/X11R6/lib/usr/lib/qt-3.0.5/lib/usr/lib/sane/usr/local/lib/usr/lib non-mysql box: /usr/kerbero

Re: installing perl module for mysql driver

2004-04-09 Thread Wiggins d Anconia
> Im trying to install the module DBD::mysql so I can connect to a mysql > database from a perl script. The instructions for installing told me to > run the command: > > perl -MCPAN -e 'install Bundle::DBD::mysql' > > this did its thing, downloaded and unzipped some gz gfiles, etc. Then said > ev

Re: installing perl module without root permission

2004-04-09 Thread Wiggins d Anconia
Please bottom post, and please read the previous threads. Your information is correct, but has already been provided. I didn't see much in that document that hasn't already been covered. Does anyone have anything else pertinent (aka hasn't already been mentioned) to add? http://danconia.org > t

error during make of Crypt::Idea 1.02

2004-04-09 Thread Bliss, Kevin
I am running Solaris 9, perl 5.8.3. When I try to install Crypt::Idea it fails in the make process. Thanks # perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Crypt::IDEA # make cp IDEA.pod blib/lib/Crypt/IDEA.pod cp IDEA.pm blib/lib/Crypt/IDEA.pm /usr/local

Re: installing perl module without root permission

2004-04-09 Thread Randal L. Schwartz
> "gohaku" == gohaku <[EMAIL PROTECTED]> writes: gohaku> What if perldoc is not included for some reason? All perl distros (except macperl for os 9) in the past eight years or so have "perldoc". -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTE

Help with the logic of my structure?

2004-04-09 Thread arichmond(contr-ird)
Title: Message I am using snmp to walk a couple of tables on some switches to output a list of mac to port numbers. It works fine when using only 1 switch, when I put multiple switches in the list to walk, the output gets messed up showing multiple ports and or the same port but with differe

Re: installing perl module without root permission

2004-04-09 Thread gohaku
On Apr 9, 2004, at 6:27 AM, Randal L. Schwartz wrote: Yes, and the instructions are included with your copy of Perl, in "perldoc perlmodinstall". What if perldoc is not included for some reason? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

DBIx::DWIW

2004-04-09 Thread Olivier Wirz
Hello, In the DBIx::DWIW module documentation is follwing note: NOTE: This module is currently specific to MySQL, but needn't be. We just haven't had a need to talk to any other database server Does somebody already needed this module with Oracle (specially Oracle 9i under AIX 5.x) ? Thank you.

Re: installing perl module without root permission

2004-04-09 Thread Randal L. Schwartz
> "Jayakumar" == Jayakumar Rajagopal <[EMAIL PROTECTED]> writes: Jayakumar> Hi friends, Jayakumar> I am in this condition : Jayakumar> (1) I have to install XML::Simple or XML::Twig or such XML module. Jayakumar> (2) Here Sys. administrator, does not install/

Question about permissions

2004-04-09 Thread mike
I have developed an intranet perl/postgesql app which works fine except for one bizarre problem I have all the appropriate scripts with the following permissions -rw-r-xr-- 1 mike apache However periodically the permissions change with the group ownership changing. This is on Fedora with perl-

Re: installing perl module without root permission

2004-04-09 Thread PerlDiscuss - Perl Newsgroups and mailing lists
take a look at http://www.rcbowen.com/imho/perl/modules.html. Specifically he/she writes: If you do not have root permissions on the machine where you want to install the module, such as if you wish to install a module in your home directory, just change one of those commands. Instead of

installing perl module for mysql driver

2004-04-09 Thread PerlDiscuss - Perl Newsgroups and mailing lists
Im trying to install the module DBD::mysql so I can connect to a mysql database from a perl script. The instructions for installing told me to run the command: perl -MCPAN -e 'install Bundle::DBD::mysql' this did its thing, downloaded and unzipped some gz gfiles, etc. Then said everything was ok