Re: Help me with an url rewrite

2007-08-10 Thread Cristi Ocolisan
Hmm, 1. I did not sent a solution. 2. I just suggested how you should do. 3. I provided a link where you should ask about your problem. Cristi Ocolisan Let the record show: Microsoft is not an Australian company -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent:

RE: Find and replace from CSV

2007-08-10 Thread Purohit, Bhargav
-Original Message- From: Jeff Pang [mailto:[EMAIL PROTECTED] Sent: Friday, August 10, 2007 10:54 AM To: beginners@perl.org Subject: Re: Find and replace from CSV -Original Message- >From: Jeff Pang <[EMAIL PROTECTED]> >#!/bin/sh >FILE=$1 >REPLACED=$2 >REPLACEMENT=$3 > >perl

IPTables-IPv4-0.98 on Centos 5 v5.8.8 built for x86_64-linux-thread-multi

2007-08-10 Thread Michael Gale
Hey, I can not get IPTables-IPv4-0.98 to compile on Centos 5 (v5.8.8 built for x86_64-linux-thread-multi). Has any one else got this to work or know of the fix ? --snip-- make -C libiptc/ all make[1]: Entering directory `/root/.cpan/build/IPTables-IPv4-0.98/libiptc' make[1]: Nothing to

Re: Find and replace from CSV

2007-08-10 Thread Chas Owens
On 8/10/07, Purohit, Bhargav <[EMAIL PROTECTED]> wrote: snip > X="Hi" > Export $X > Perl -e 'print $ENV{x}' > > But it also do not works ! snip That is because "Export $X" is not shell code (or at least not any shell I am familiar with). Even "export $X", which is valid shell code, won't do what

Re: Regular Expression Problem

2007-08-10 Thread themachinator
Mr. Shawn H. Corey wrote: > [EMAIL PROTECTED] wrote: > > Morning All, > > > > I've a relatively minor problem that has been giving me a headache for > > several days. I know there are many other ways to do this, however I'd > > like to know why this isn't working. The snippet of code in question >

Re: Regular Expression Problem

2007-08-10 Thread oryann9
> > like to know why this isn't working. The snippet > of code in question > > is as follows > > > > > > if($ARGV[2] =~ /port/i && $ARGV[3] =~ /nick/i) > > { > > > > Well, on a hunch I'd say that snippet returns false > because either > $ARGV[2] doesn't match /port/i, or because $ARGV[3] > doe

Re: Regular Expression Problem

2007-08-10 Thread Paul Lalli
On Aug 10, 6:26 am, [EMAIL PROTECTED] wrote: > Morning All, > > I've a relatively minor problem that has been giving me a headache for > several days. I know there are many other ways to do this, however I'd > like to know why this isn't working. The snippet of code in question > is as follows > >

Re: Help me with an url rewrite

2007-08-10 Thread Nils Kaiser
Hello, well this is more of a mod_rewrite question. The problem is that you have to use the QUERY_STRING variable in order to access parameters, these are not part of the normal scope of the RewriteCond / RewriteRule stuff. Refer to the mod_rewrite guide for that. We use this to append a use

Regular Expression Problem

2007-08-10 Thread themachinator
Morning All, I've a relatively minor problem that has been giving me a headache for several days. I know there are many other ways to do this, however I'd like to know why this isn't working. The snippet of code in question is as follows if($ARGV[2] =~ /port/i && $ARGV[3] =~ /nick/i) { Thanks

Re: Help me with an url rewrite

2007-08-10 Thread pennyyh
Hmm, then please don't post your WRONG solution sample. -Original Message- From: [EMAIL PROTECTED] To: beginners@perl.org Sent: Fri, 10 Aug 2007 6.26PM Subject: Re: Help me with an url rewrite Hmm, 1. I did not sent a solution. 2. I just suggested how you should do. 3.

Re: Help me with an url rewrite

2007-08-10 Thread pennyyh
Thank you.it works perfectly. -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: beginners@perl.org; [EMAIL PROTECTED] Sent: Fri, 10 Aug 2007 6.16PM Subject: Re: Help me with an url rewrite Hello, well this is more of a mod_rewrite question. The problem is that you

CGI Admin

2007-08-10 Thread Inventor
Hi, I just set up an account on www.godaddy.com and uploaded my cgi scripts there. One of them works fine and the other does not. The technical support rep told me that I needed to figure out how to "go into the CGI Admin" in order to debug the issue. I don't see a CGI::Admin module available.

Perl LWP post to a web form

2007-08-10 Thread Typos
I'm trying to post to a web form and get the results back, I've tried but it seems that I am not posting anything to the page. What am i doing wring ?

Re: Outlook CSV Parser

2007-08-10 Thread Laxminarayan G Kamath A
On Wed, 30 May 2007 12:14:52 -0400, "Chas Owens" <[EMAIL PROTECTED]> wrote: ... > http://www.perl.com/pub/a/2004/06/25/profiling.html > http://search.cpan.org/~nwclark/perl-5.8.8/utils/dprofpp.PL > The following code seems to speed up the parsing by two orders of > magnitude (2.214 seconds

comparing elements of arrays

2007-08-10 Thread Tony Heal
There has got to be a better way (or more elegant way) to do this. I have 2 DNS files from bind9. I have removed everything but the relevant info I want. That info is as follows: A 123.213.123.123 a-stagingA123.123.123.122 CNAME software.mycompany.com

Help me with an url rewrite

2007-08-10 Thread pennyyh
I'm not sure if I've asked the correct lists,but hope I can get some helps here.:) I need a mod_rewrite rule,rewrite this url: http://abc.site.com/index.php?q1=v1 to: http://www.site.com/index.php?q1=v1&domain=abc I applicated this rule: RewriteEngine on RewriteRule ^/(.+)$ http://www

RE: Help me with an url rewrite

2007-08-10 Thread Cristi Ocolisan
First, you are correct. This is not the list you need. You should use something like this: RewriteRule ^index.php/(.*)$ http://www.site.com/index.php?q1=$1&domain=abc More info here: http://www.modrewrite.com/ Hope it helps. Cristi Ocolisan Let the record show: Microsoft is not an Australian c

Re: Help me with an url rewrite

2007-08-10 Thread pennyyh
Sorry first. But have you looked at my question carefully? Your solution CAN'T work at all! -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; beginners@perl.org CC: [EMAIL PROTECTED] Sent: Fri, 10 Aug 2007 6.06PM Subject: RE: Help me with an url rewrite First, you are co

RE: Help me with an url rewrite

2007-08-10 Thread Cristi Ocolisan
Well, Next time try to find the CORRECT LIST. Cristi Ocolisan Let the record show: Microsoft is not an Australian company -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, August 10, 2007 1:34 PM To: [EMAIL PROTECTED]; beginners@perl.org Subject: Re: Hel

Re: Regular Expression Problem

2007-08-10 Thread Paul Lalli
On Aug 10, 8:28 am, [EMAIL PROTECTED] wrote: > I ought clarify. No, you ought to post a short-but-complete script to start with, and not assume you know what one specific line of the program is causing problems. > It's not a problem with the command line, or anything like that, it's > a problem w

Re: Regular Expression Problem

2007-08-10 Thread Paul Lalli
On Aug 10, 9:27 am, [EMAIL PROTECTED] (Oryann9) wrote: > Another hunch looking at your syntax, ideally you > should be using the lesser precedence operator 'and' > instead of the higher precedence operator '&&'. Yes > plz show the command line string. :) > > if($ARGV[2] =~ /port/i and $ARGV[3] =~ /

Re: CGI Admin

2007-08-10 Thread Inventor
On Aug 10, 1:18 am, [EMAIL PROTECTED] (Inventor) wrote: > Hi, I just set up an account onwww.godaddy.comand uploaded my cgi > scripts there. One of them works fine and the other does not. The > technical support rep told me that I needed to figure out how to "go > into the CGI Admin" in order to

Re: CGI Admin

2007-08-10 Thread Paul Lalli
On Aug 10, 1:18 am, [EMAIL PROTECTED] (Inventor) wrote: > Hi, I just set up an account onwww.godaddy.comand uploaded my cgi > scripts there. One of them works fine and the other does not. The > technical support rep told me that I needed to figure out how to "go > into the CGI Admin" in order to

Re: Regular Expression Problem

2007-08-10 Thread Mr. Shawn H. Corey
[EMAIL PROTECTED] wrote: Morning All, I've a relatively minor problem that has been giving me a headache for several days. I know there are many other ways to do this, however I'd like to know why this isn't working. The snippet of code in question is as follows if($ARGV[2] =~ /port/i && $ARGV

Re: Perl LWP post to a web form

2007-08-10 Thread Lawrence Statton
> I'm trying to post to a web form and get the results back, > I've tried but it seems that I am not posting anything to the page. > What am i doing wring ? > > > > > > > >   > > > > height="23"> > > > > > > > > #!/usr/bin/perl > > use

Re: Perl LWP post to a web form

2007-08-10 Thread Mumia W.
On 08/10/2007 03:00 PM, Typos wrote: I'm trying to post to a web form and get the results back, I've tried but it seems that I am not posting anything to the page. What am i doing wring ? [...] my $response = $browser->post( $URL, [ 'searchtype' => '3'; ] ); print $response->decoded_con

Re: comparing elements of arrays

2007-08-10 Thread Chris Charley
- Original Message - From: ""Tony Heal"" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: Sent: Friday, August 10, 2007 4:23 PM Subject: comparing elements of arrays There has got to be a better way (or more elegant way) to do this. I have 2 DNS files from bind9. I have removed e

Re: Regular Expression Problem

2007-08-10 Thread themachinator
[EMAIL PROTECTED] wrote: > Mr. Shawn H. Corey wrote: > > [EMAIL PROTECTED] wrote: > > > Morning All, > > > > > > I've a relatively minor problem that has been giving me a headache for > > > several days. I know there are many other ways to do this, however I'd > > > like to know why this isn't wor

Re: Regular Expression Problem

2007-08-10 Thread themachinator
[EMAIL PROTECTED] wrote: > Mr. Shawn H. Corey wrote: > > [EMAIL PROTECTED] wrote: > > > Morning All, > > > > > > I've a relatively minor problem that has been giving me a headache for > > > several days. I know there are many other ways to do this, however I'd > > > like to know why this isn't wor

Re: Regular Expression Problem

2007-08-10 Thread rcook
> > [EMAIL PROTECTED] wrote: >> Mr. Shawn H. Corey wrote: >> > [EMAIL PROTECTED] wrote: >> > > Morning All, >> > > >> > > I've a relatively minor problem that has been giving me a headache >> for >> > > several days. I know there are many other ways to do this, however >> I'd >> > > like to know wh

New to Perl

2007-08-10 Thread Gladstone Daniel - dglads
Good Morning all, 1) I am new to Perl 2) Running ActiveState Perl 3) Trying to find/install a module: Spreadsheet::WriteExcel 4) Can anyone provide me instruction on: a) where and how I can get it? b) How to install it on my PC Thanks Daniel H Glad

Re: CGI Admin

2007-08-10 Thread usenet
On Aug 9, 10:18 pm, [EMAIL PROTECTED] (Inventor) wrote: > "go into the CGI Admin" in order to debug the issue. I suspect this is a web-based control panel where customers can manage their stuff without shell access. This is probably how you would do things like setting file permissions (which I s

Re: New to Perl

2007-08-10 Thread Ken Foskey
On Fri, 2007-08-10 at 08:39 -0500, Gladstone Daniel - dglads wrote: > Good Morning all, > > 1) I am new to Perl > > 2) Running ActiveState Perl > > 3) Trying to find/install a module: Spreadsheet::WriteExcel > > 4) Can anyone provide me instruction on: >a) where and how

Appending 1 D array into a 2 D array

2007-08-10 Thread Mahurshi Akilla
I am trying to read a csv file into a 2D array matrix I am having a hard time trying to get the array returned by split function to "attach" to a 2D array. See the code below for further info on what I'm trying to do ## initialize $row = 0; $col = 0; ## go thru each line of file while () {

reading from scalar File::Temp handle

2007-08-10 Thread talkingpidgin
I am attempting to use the File::Temp libraries to read and write to auto generated files but I am having trouble reading from the file after the data has been written. I believe this to be something specific to how tempfile() works because I have been able to successfully read from a scalar handle

Re: Appending 1 D array into a 2 D array

2007-08-10 Thread Mr. Shawn H. Corey
Mahurshi Akilla wrote: I am trying to read a csv file into a 2D array matrix I am having a hard time trying to get the array returned by split function to "attach" to a 2D array. See the code below for further info on what I'm trying to do ## initialize $row = 0; $col = 0; ## go thru eac

Re: reading from scalar File::Temp handle

2007-08-10 Thread John W. Krahn
[EMAIL PROTECTED] wrote: I am attempting to use the File::Temp libraries to read and write to auto generated files but I am having trouble reading from the file after the data has been written. That is because the file pointer is at the end of the file. I believe this to be something specif

Re: Appending 1 D array into a 2 D array

2007-08-10 Thread John W. Krahn
Mahurshi Akilla wrote: I am trying to read a csv file into a 2D array matrix I am having a hard time trying to get the array returned by split function to "attach" to a 2D array. See the code below for further info on what I'm trying to do ## initialize $row = 0; $col = 0; ## go thru eac

Filling out HTML form w/ hidden and pre-selected fields

2007-08-10 Thread Kelly Jones
I've scraped an HTML page and gotten back a string that looks like this: [... bunch of stuff I don't care about ...] bar some text here boing [... bunch of stuff I don't care about ...] Is there a Perl module that will take this string and return a hash representing the current (default) for

Question about map

2007-08-10 Thread Moon, John
Does anyone see anything wrong with the following: -labels=> {map ({$$_[0]=>$$[1]>0?"$$_[0] *":"$$_[0] _"} @$servers)}, I can not get the map to return the _true_ value... $$_[1] is either 1 or 0... The following works... -labels=> {map ({$$_[0]=>&imap($$_[0],$$_[1])} @$servers)}, sub imap{

Re: Question about map

2007-08-10 Thread John W. Krahn
Moon, John wrote: Does anyone see anything wrong with the following: -labels=> {map ({$$_[0]=>$$[1]>0?"$$_[0] *":"$$_[0] _"} @$servers)}, ^ $$[1] is wrong. It should be $$_[1] or better $_->[1]. John -- Perl isn't a toolbox, but a small machine shop where you c

Re: New to Perl

2007-08-10 Thread Jeff Pang
-Original Message- >From: Gladstone Daniel - dglads <[EMAIL PROTECTED]> >Sent: Aug 10, 2007 9:39 PM >To: beginners@perl.org >Subject: New to Perl > >Good Morning all, > >1) I am new to Perl > >2) Running ActiveState Perl > >3) Trying to find/install a module: Spreadsheet::WriteExcel >