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 e
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
E:/!PRG/Perl/Perl56\site\lib\auto\XML\Parser\Expat\Expat.dl
- 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
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
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
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 Win32::OLE::Co
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 yo
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
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
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/} ;
close IN;
}
print @matches
HTH
From: "Hawley, Eric" <[EMAIL PROTECTED]>
To:
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
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) ){
@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, F
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
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 ver
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';
(wh
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
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
C:/Perl/sit
Ross,
> Here is the
> problem the amount of memory allocated is very close to being
> 3 times the size of the hash tables. even if I undef
> %Original_Hash twice.
I think you're confusing a few issues here.
Q1) When if ever does Perl return memory back to Windows for other
applications?
A1)
> -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
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,
Alistair,
What you say makes sense to me but, I have been doing a similar thing. The
difference is I would read in a hash table %Original_Hash and then rename (
Richard's way ) to say %Alpha, then I would read in another with the same
name %Original_Hash and rename that one to %Gamma. Here is the
> 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 t
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
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 $val
Hi,
I am not sure myself. I faced similar problem with Cyrillic
characters on XP Pro though.
I made sure Perl did not mess up with characters, by just making
output of your script
and then displaying text in IE, or NS, changing encoding.
The characters displayed very much depend o
26 matches
Mail list logo