Re: how do I write a regex that looks for 'X' 'NOT Y' 'Z'

2004-04-10 Thread Bram Mertens
On Wed, 2004-03-31 at 03:43, Harry Putnam wrote: [...] > > Thanks, but I should have mentioned that I'm NOT testing the from > > header. I'm trying to catch messages that look like bounced messages > > from me but that don't include my correct e-mail-info. [...] I worked it out, here's my solutio

Spliting some path

2004-04-10 Thread max4o
How can I split some path to directories for example if my $path is "/home/ftp/some/file" how can I get elements /home, than ftp, than some, and for last - file I mean without split function, is there any other smarter way for doing it. because if I have /home/ftp/some\/other dir/file if I split

Re: Spliting some path

2004-04-10 Thread Randy W. Sims
On 4/10/2004 12:56 PM, [EMAIL PROTECTED] wrote: How can I split some path to directories for example if my $path is "/home/ftp/some/file" how can I get elements /home, than ftp, than some, and for last - file I mean without split function, is there any other smarter way for doing it. because if

using WWW::Mechanize

2004-04-10 Thread Randy W. Sims
The following code connects to a linksys router and resets the connection. I can't seem to find the proper way to access the contents of the HTML::Form::InputText object without accessing it's internal data structure. This is part of the expression in question: my $status = $1 if $input->{value

Where do you put your modules?

2004-04-10 Thread Kevin Old
Hello everyone, I've written several subroutines that are useful to me, but not useful enough to package into separate modules and publish on CPAN. I put them in a module call KOBagOTrix.pm and just use a "use lib" statement to point to that module on my hard drive. Well, I find that I'm using i

Re: Where do you put your modules?

2004-04-10 Thread drieux
On Apr 10, 2004, at 10:40 AM, Kevin Old wrote: [..] Should I just put /home/kdo/perlmods in my @INC on every system? personally I would recommend that you read the perldoc h2xs and just step on down the lane. This way one puts together a CPAN style Package that will simplify the process all the way

How to write a function that clears an array?

2004-04-10 Thread Richard Heintze
I'm passing a singularly dimensioned array to a function. I need to clear the array in the function so that when I return to the main program, there are no entries in the array variable I passed to the function. Can someone write a small function that does this? Thanks, Sieg __

Re: How to write a function that clears an array?

2004-04-10 Thread Jeff 'japhy' Pinyan
On Apr 10, Richard Heintze said: >I'm passing a singularly dimensioned array to a >function. I need to clear the array in the function so >that when I return to the main program, there are no >entries in the array variable I passed to the >function. You have to pass the array by reference, then.

Re: parsing Apache2 access log

2004-04-10 Thread Andrew Gaffney
Andrew Gaffney wrote: 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

Who is running my program?

2004-04-10 Thread Chance Ervin
I am writing a perl program to access client information for reading, writing, and updating. I only want superuser to be able to do the writes and updates, though, while all other accepted gpg users can read the information. Is there an easy way to check which user is running your scripts? Thank

RE: How to write a function that clears an array?

2004-04-10 Thread Charles K. Clarkson
Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> wrote: : : On Apr 10, Richard Heintze said: : : > I'm passing a singularly dimensioned array to : > a function. I need to clear the array in the : > function so that when I return to the main : > program, there are no entries in the array : > variable I pas

Append session id to url

2004-04-10 Thread Issa Mbodji
I am using Apache::Session::Mysl and I was able to generate a session id. What I want to know now is how to append that sess_id to the url as soon as it is created and as soon as the user loads the page. For example, the session is created when I go to the following url: http://localhost/cgi-bin/

Re: Who is running my program?

2004-04-10 Thread Smoot Carl-Mitchell
On Sat, 10 Apr 2004 17:07:02 -0700 "Chance Ervin" <[EMAIL PROTECTED]> wrote: > Is there an easy way to check which user is running your scripts? See $< and $> in perlvar. -- Smoot Carl-Mitchell Systems/Network Architect email: [EMAIL PROTECTED] cell: +1 602 421 9005 home: +1 480 922 7313 -- T

Re: Append session id to url

2004-04-10 Thread WC -Sx- Jones
Issa Mbodji wrote: http://localhost/cgi-bin/myrequest.pl?sess_id=0002114452221149988ac01 as a HTTP Header command - my $id = '0002114452221149988ac01'; print "Location: http://localhost/cgi-bin/myrequest.pl?sess_id=$id";; -- _Sx_ http://youve-reached-the.endoftheinternet.org/ _ h

Re: Append session id to url

2004-04-10 Thread Issa Mbodji
Thank you! [EMAIL PROTECTED] wrote: Issa Mbodji wrote: http://localhost/cgi-bin/myrequest.pl?sess_id=0002114452221149988ac01 as a HTTP Header command - my $id = '0002114452221149988ac01'; print "Location: http://localhost/cgi-bin/myrequest.pl?sess_id=$id";; -- To unsubscribe, e-mai