RE: How does my default get undefined?

2003-02-13 Thread Alistair . McGlinchy
Richard, %hash_default = %hash; This does not copy the arrays or hashes referenced in the values of the hash. Remember a hash is an associative list of scalars. %hash = ($key1, $value1); So if you say: %hash_default = %hash; %hash_default is now equal ($key1, $value1); If

XP explorer and AddConnection

2003-02-13 Thread Grakowsky, Richard \(ETS: Communications and Network Services\)
Hello All, I'm working on what was supposed to be a simple little script to allow users on WinXP systems to remap drives to some DFS shares without having to logoff/on to the systems (classroom environment). When I run the app, I can get to the drives contents from the CMD prompt, but

RE: How does my default get undefined?

2003-02-13 Thread Beckett Richard-qswi266
Richard, %hash_default = %hash; This does not copy the arrays or hashes referenced in the values of the hash. Remember a hash is an associative list of scalars. Oh bum! :-) That explains why very occasionally, it would seem to work, but I could never reproduce the circumstances that

Re: Install SSL support for Windows?

2003-02-13 Thread Randy Kobes
On Thu, 13 Feb 2003, Frazier, Joe Jr wrote: What da heck do I have to do to get SSL to work with LWP? I installed Crypt::SSLeay and Net_SSLeay.pm from PPM. I then found a binary for openssl9.6g and copyed into my path ( I was getting an error stating that it could not find ssleay32.dll, so

RE: Install SSL support for Windows?

2003-02-13 Thread Frazier, Joe Jr
-Original Message- From: Randy Kobes [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 9:16 AM To: Frazier, Joe Jr Cc: [EMAIL PROTECTED] Subject: Re: Install SSL support for Windows? On Thu, 13 Feb 2003, Frazier, Joe Jr wrote: What da heck do I have to do to get

Deciphering DBI trace fro DBD-XBase

2003-02-13 Thread Adam Frielink
I posted this yesterday on the Win32-database list and got no response. Can anyone help with this problem? I am trying to debug this script of mine, but I cannot seen to understand why I get the following error... Tk::Error: Can't locate object method new via package XBase at

Re: Deciphering DBI trace fro DBD-XBase

2003-02-13 Thread michael higgins
Adam Frielink wrote: I posted this yesterday on the Win32-database list and got no response. Can anyone help with this problem? I am trying to debug this script of mine, but I cannot seen to understand why I get the following error... Tk::Error: Can't locate object method new via package

Re: Deciphering DBI trace fro DBD-XBase

2003-02-13 Thread michael higgins
Adam Frielink wrote: I posted this yesterday on the Win32-database list and got no response. Can anyone help with this problem? [snip] And to followup, thankfully, I have a separate install on my box at the office. Replacing 'Xbase.pm' ver 1.07 with 'XBase.pm ver $VERSION = '0.210';

Re: Deciphering DBI trace fro DBD-XBase

2003-02-13 Thread michael higgins
michael higgins wrote: Adam Frielink wrote: I posted this yesterday on the Win32-database list and got no response. Can anyone help with this problem? [snip] And to followup, thankfully, I have a separate install on my box at the office. Replacing 'Xbase.pm' ver 1.07 with 'XBase.pm

question about grep

2003-02-13 Thread Hawley, Eric
I got a question concerning grep. I would like to use it to pull out all full lines of text, that starts with the word Status, from a list of files. I am not really too experienced with using Metacharacters and Metasymbols and do not know how to go about doing this with grep. Can someone help

RE: question about grep

2003-02-13 Thread Peter Guzis
@matches = grep /^Status/, @data; If this doesn't do it you might consider posting some sample data. Peter Guzis Web Administrator, Sr. ENCAD, Inc. - A Kodak Company email: [EMAIL PROTECTED] www.encad.com -Original Message- From: Hawley, Eric [mailto:[EMAIL PROTECTED]] Sent: Thursday,

RE: question about grep

2003-02-13 Thread Hawley, Eric
I tried what you did suggested and it only pulled out the word Status, here is the code below; #location contains the path for the report to be stored $report_location = $location; $report_location =~ s/\//\\/; $report_location = $report_location . \\Reports; unless( -e $report_location) ){

RE: Install SSL support for Windows?

2003-02-13 Thread Randy Kobes
On Thu, 13 Feb 2003, Frazier, Joe Jr wrote: Thanks Randy, that worked. I guess my guess my biggest gripe is Windows has enough of its own quirks, why can't windows users easily find the binaries they need to use free software modules. (ie, if a module requires a dll, either include it or

RE: question about grep

2003-02-13 Thread fezwang robot
Do you want to pull out lines FROM files, or from a list of files? e.g.: to print a list of lines beginning with 'my' from a directory of perl scripts: while (*){ open IN, $_; @matches = grep {/^my/} IN; close IN; } print @matches HTH From: Hawley, Eric [EMAIL PROTECTED] To:

RE: question about grep

2003-02-13 Thread Hawley, Eric
actually I think I see what is wrong with the code. At first I was reading the wrong variable which was producing just the word Status and second after looking at the grep function again it looks as though I will have to store the file into a data structure and grep from that data structure to

RE: question about grep

2003-02-13 Thread Alistair . McGlinchy
Eric I'm in a pretty-code-mode at the moment, my apologies for the overkill. #location contains the path for the report to be stored $report_location = $location; $report_location =~ s/\//\\/; To make this regex look a bit better you can use a different delimiter rather than /. Also you

RE: question about grep

2003-02-13 Thread Dial Joe
I'm gonna de-lurk for this one. If you look at Peter's example, you will note that grep applies a block-or-something to a list and returns a list. You are applying it to the file name, not the contents. Perl grep doesn't read files. If this wasn't the win32 perl list, I would just advise that

RE: question about grep

2003-02-13 Thread Alistair . McGlinchy
Eric, -Original Message- From: Hawley, Eric [mailto:[EMAIL PROTECTED]] actually I think I see what is wrong with the code. At first I was reading the wrong variable which was producing just the word Status and second after looking at the grep function again it looks as though

Re: help reading file url loop

2003-02-13 Thread Malcolm Debono
Thank you Bill. Can I ask (trying to understand, reading the docs and lama book). My understanding is that Keys is the $url and the Value is the title which in my presumption is stored in $links of $links{$url} = $1; I don't understand the $1. Confused here?? how are the keys and values passed to

Re: help reading file url loop

2003-02-13 Thread michael higgins
- Original Message - From: $Bill Luebkert [EMAIL PROTECTED] To: Malcolm Debono [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 1:31 AM Subject: Re: help reading file url loop Malcolm Debono wrote: Hello, Can someone please help. I am trying to get my

Q XML-Parser upgrade

2003-02-13 Thread John
This morning I updated some XML modules. When I upgraded XML::Parser I got the following warning as part of the activity log. [quote] PPM verify --location=. --upgrade XML::Parser Upgrade package 'XML-Parser'? (y/N): y Cannot forceunlink

Greetings...

2003-02-13 Thread Emo1313
Greetings, Welp, I have had no luck getting a Perl FTP server running... So what I am looking for and perhaps one of you guys can help me out is; An FTP server application that I can use Perl to add and remove users, set up where there directories are and perhaps

Win32::OLE Word Search and Replace Script Runs Locally but not as part of CGI

2003-02-13 Thread Donavon Lerman
I have the same program written for Excel that works fine both locally and part of a CGI Here is the Error I get: Can't call method Content on an undefined value at c:\scripts\sr.pl line 19. Here is the Code: #!/perl/bin use strict; use Win32::OLE; use