Re: htaccess question

2005-08-16 Thread Bill Stephenson
On Aug 12, 2005, at 2:06 AM, David Dorward wrote: If a directory is password protected with .htaccess ... or do you always get the popup box? I'm guessing you are talking about Basic Authentication here. A .htaccess file can contain pretty much any Apache directive, so it could be

RE: Insecure setuid?

2005-08-16 Thread Tantalo, Christopher G
Well, I seemed to have cleaned up my insecure errors, and now get a LOCATION: connected ERROR: install_driver(Oracle) failed: Can't load '/opt/perl5/lib/site_perl/5.8.5/PA-RISC2.0-LP64/auto/DBD/Oracle/Oracle.s l' for module DBD::Oracle: No such file or directory at

Clearing cookies

2005-08-16 Thread Denzil Kruse
Hi all, I'm trying to clear a cookie using CGI::Cookies, and can't seem to do it :( if ($clear_cookie eq 'yes') { my %cookies = fetch CGI::Cookie; print getting cookiebr; if ($cookies{'id'}) { print clearing cookiebr; $cookies{'id'}-expires('-1s');

Re: Clearing cookies

2005-08-16 Thread Wiggins d'Anconia
Denzil Kruse wrote: Hi all, I'm trying to clear a cookie using CGI::Cookies, and can't seem to do it :( if ($clear_cookie eq 'yes') { my %cookies = fetch CGI::Cookie; print getting cookiebr; if ($cookies{'id'}) { print clearing cookiebr;

A sript to delete programs installed from source

2005-08-16 Thread Harold Castro
Hi, It seems that whatever software manager an operating system has, still, programs installed manually from their sources are difficult to removed. Do you have a script that will accomlish this job without further hassle? Thanks

getting the most efficient ways

2005-08-16 Thread Beast
I have these following arrays : @employees = (); # has 1000 elements @managers = (); # has 100 elements @staffs = (); # employees - managers I have @employees and @managers in hand, what is the most efficient ways to print @staffs? So far this is what I've done. ... foreach my $emp

Re: Parsing and HTML file and then creating MS-Excel out of it.

2005-08-16 Thread Chris Devers
On Tue, 16 Aug 2005, Nath, Alok (STSD) wrote: Can anybody send me some pointers for reading an HTML file and then creating an excel file ? Basically what I want to do is read the data in the HTML file and then create and MS-Excel out of it. I bet you could write a Perl script that

Re: getting the most efficient ways

2005-08-16 Thread Beast
Beast wrote: As you can see, the step will increase as the number of manager increase. Sorry, it should be: foreach my $emp (@employees) { foreach my $mgr (@managers) { if ($mgr eq $emp) { print $emp is Manager\n; next; } print $emp is Staff\n; }

Re: getting the most efficient ways

2005-08-16 Thread John Doe
Beast am Dienstag, 16. August 2005 13.29: I have these following arrays : @employees = (); # has 1000 elements @managers = (); # has 100 elements @staffs = (); # employees - managers I have @employees and @managers in hand, what is the most efficient ways to print @staffs? So far this is

array of hashes of arrays...

2005-08-16 Thread Ryan Perry
How can I do this correctly? foreach my $col (@columns) { my %{$col} = ( string = $col, number = [EMAIL PROTECTED] ); push (@graph, \%{$col}); } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: array of hashes of arrays...

2005-08-16 Thread Charles K. Clarkson
Ryan Perry mailto:[EMAIL PROTECTED] wrote: : How can I do this correctly? : : : foreach my $col (@columns) { :my %{$col} = ( : string = $col, : number = [EMAIL PROTECTED] : ); :push

Re: array of hashes of arrays...

2005-08-16 Thread Daniel Mueller
On Monday 15 August 2005 22.47, Ryan Perry wrote: How can I do this correctly? foreach my $col (@columns) { my %{$col} = ( string = $col, number = [EMAIL PROTECTED] ); push (@graph,

RE: A sript to delete programs installed from source

2005-08-16 Thread Timothy Johnson
This is not a beginners question. This is a free script question. Try looking for a free script list. -Original Message- From: Harold Castro [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 16, 2005 1:18 AM To: beginners@perl.org Subject: A sript to delete programs installed from

which packages are installed?

2005-08-16 Thread Brian Volk
Hi All, I'm currently running ActiveState's Active Perl 5.8 at work on WinXP. I'm getting a new machine (WInXP) in a couple of weeks and I was curious if anyone knows how I can list the modules that I have installed. This directory C:\Perl\site\lib\ppm-conf has a lot of PKG files, which I

Re: which packages are installed?

2005-08-16 Thread Rex Rex
Brian, I don't think you can differentiate between what came out-of-the-box and what you had installed on your own as there isn't an XML tag or attribute that I am aware of that would capture this information in PPM.xml file. That much said, this is what I think you are looking out for. # Rex

RE: which packages are installed?

2005-08-16 Thread Brian Volk
-Original Message- From: Rex Rex [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 16, 2005 2:12 PM To: Brian Volk Cc: Beginners (E-mail) Subject: Re: which packages are installed? Brian, I don't think you can differentiate between what came out-of-the-box and what you had

Replacing Characters only in ()

2005-08-16 Thread Scott Pham
I currently have this issue I can't seem to get to work correctly or more like at all. I'm looking at a string say: (one,two,three) word,word2,word3,word4 When I split this string using the comma, it splits the ones in parens as well. (one,two,three) word - this line should only be one

Re: Replacing Characters only in ()

2005-08-16 Thread John W. Krahn
Scott Pham wrote: I currently have this issue I can't seem to get to work correctly or more like at all. I'm looking at a string say: (one,two,three) word,word2,word3,word4 When I split this string using the comma, it splits the ones in parens as well. (one,two,three) word - this

Re: Replacing Characters only in ()

2005-08-16 Thread Scott Pham
Nevermind I think I figured it out :) On 8/16/05, Scott Pham [EMAIL PROTECTED] wrote: I currently have this issue I can't seem to get to work correctly or more like at all. I'm looking at a string say: (one,two,three) word,word2,word3,word4 When I split this string using the comma,

Re: Replacing Characters only in ()

2005-08-16 Thread Scott Pham
Thanks John, this solution is much better :) On 8/16/05, John W. Krahn [EMAIL PROTECTED] wrote: Scott Pham wrote: I currently have this issue I can't seem to get to work correctly or more like at all. I'm looking at a string say: (one,two,three) word,word2,word3,word4 When I

Unitialized value in hash element problem...

2005-08-16 Thread Tony Frasketi
Hello Listers I'm getting the following error when executing the function listed below... cimagedisp_new.cgi: Use of uninitialized value in hash element at /.../cimagedisp_new.cgi line 238, FILE line 69. 223 #- 224 # Build a hash

Find string ending with %

2005-08-16 Thread Keenan, Greg John (Greg)** CTR **
Hi, Need some help with a regex please. I need to search a file for every instance of a string that ends with %. Think output from the df command. I need the 1, 2 or 3 digits before the % passed into the array. Code: #!/usr/bin/perl use warnings; use strict; my $outfile2 = XXX.dat;

Re: Unitialized value in hash element problem...

2005-08-16 Thread John W. Krahn
Tony Frasketi wrote: Hello Listers Hello, I'm getting the following error when executing the function listed below... It is a warning not an error. cimagedisp_new.cgi: Use of uninitialized value in hash element at /.../cimagedisp_new.cgi line 238, FILE line 69. perldoc perldiag

RE: Find string ending with %

2005-08-16 Thread Timothy Johnson
Just for starters, a regular expression should use the =~ operator, not the = operator. You might have seen some examples like this: while(INFILE){ if($_ =~ /mybigregularexpression/){ Do something... } } Check out 'perldoc perlre'. -Original Message- From: Keenan, Greg

Unitialized value in hash element problem...

2005-08-16 Thread Tony Frasketi
Hello Listers I'm getting the following error when executing the function listed below... cimagedisp_new.cgi: Use of uninitialized value in hash element at /.../cimagedisp_new.cgi line 238, FILE line 69. 223 #- 224 # Build a hash of

Re: Find string ending with %

2005-08-16 Thread John W. Krahn
Keenan, Greg John (Greg)** CTR ** wrote: Hi, Hello, Need some help with a regex please. I need to search a file for every instance of a string that ends with %. Think output from the df command. I need the 1, 2 or 3 digits before the % passed into the array. Code: #!/usr/bin/perl

RE: A sript to delete programs installed from source

2005-08-16 Thread Chris Devers
On Tue, 16 Aug 2005, Timothy Johnson wrote: This is not a beginners question. This is a free script question. Try looking for a free script list. To be fair, this *is* a real problem. The thing is, like many real problems, it has already been solved. Repeatedly. The tool that Harold is

FW: Find string ending with %

2005-08-16 Thread Keenan, Greg John (Greg)** CTR **
-Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED] while(DATA2) { my @oput2 = /(\d+)%/ or next; print XXX @oput2 XXX\n; } Thanks John, that's solved it. I'll read up on next. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Find string ending with %

2005-08-16 Thread John W. Krahn
[ message rearranged in chronological order. Please do not top-post ] Timothy Johnson wrote: From: Keenan, Greg John (Greg)** CTR ** [mailto:[EMAIL PROTECTED] snip my @oput2 = /\b([0-9]+)%/; snip Just for starters, a regular expression should use the =~ operator, not the =

RE: Find string ending with %

2005-08-16 Thread Timothy Johnson
John W. Krahn wrote: [ message rearranged in chronological order. Please do not top-post ] No. If I'm responding to a message in this format, I'll use this format, but there's nothing illegitimate about top-posting. It is the email format that most of the world follows, using Outlook or