Re: problem with using a module just recently installed

2005-03-29 Thread Nelson Tong
zentara wrote: >On Thu, 24 Mar 2005 22:48:44 -0500, [EMAIL PROTECTED] (Nelson Tong) >wrote: > >>perl -e 'use Cache::FastMmap' >> >>error came up which says: >> >>Can't locate loadable object for module Cache::FastMmap::CImpl in @INC >>(@INC contains: ) at >>.../.cpan/build/Cache-FastMmap-1.09

RE: HTML::Template help continues....

2005-03-29 Thread Charles K. Clarkson
Hawkes, Mick I wrote: : Here is the test page: : : : Oh, you're one of those no DOCTYPE people, huh. :) : [snipped helpful code. : status:"> That should be: status: : " selected> That should be (note the missing spaces): " selected> Bett

Re: .pm and .pl files.

2005-03-29 Thread Chris Devers
On Tue, 29 Mar 2005, Srikrishna Raghammudi wrote: > Can [anybody] [please] tell me the differnece between .pm and .pl > files[question mark] By convention, the .pm extension denotes Perl modules -- libraries used by other scripts but not run directly -- and .pl denotes Perl scripts -- programs

.pm and .pl files.

2005-03-29 Thread Srikrishna Raghammudi
Can Any body pls tell me the differnece between .pm and .pl files. Thanks, Krishna - Do you Yahoo!? Yahoo! Small Business - Try our new resources site!

HTML::Template Help 2

2005-03-29 Thread Hawkes, Mick I
Guys! I found the problem! It was the form line (see below) when I commented this out it worked! So, ok WHY? I am really lost with some of this stuff, I noticed that stuffs them up too. Cheers Confused :-) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

EastAsianWidth test.

2005-03-29 Thread Rajarshi Das
On Tue, 29 Mar 2005 11:08:05 +0530, Rajarshi Das wrote: Hi, I am running a EastAsianWidth property test on z/OS using perl-5.8.6. $str = chr(0xA1).chr(0xA2); if ($str =~ /(\p{EastAsianWidth: A}+)/) { print "match"; } else { print "no match"; } I'm using perl-5.8.6 on Linux and your code p

HTML::Template help continues....

2005-03-29 Thread Hawkes, Mick I
Hi all, First off thanks to Charles and Offer for there help. Err, the spelling should have been the same :-) Silly error, done in haste. Anyway I fixed it all up but it still doesn't work! :-(. I sliced it up to a test page and played with it but I still can't get the darn thing working. Oh a

using Perl to insert footer into PDF files?

2005-03-29 Thread Alex Walker
I'm a little new at PDF manipulation in Perl and I'm not completely convinced that what I want to do is even possible. Basically what i want to do is take a multi-page PDF file and insert a footer onto the bottom of every page along with sequential page numbers. I've been tinkering with the PDF::AP

Need first line of Excel Spreadsheet

2005-03-29 Thread Wagner, David --- Senior Programmer Analyst --- WGO
I have a directory which has output reports in them. The big problem is that they are just a bunch of letters and numbers like 2781424330fdac47c916.xls. So the user would like a more recognizable file name. This is to run on Solaris w/ Perl 5.8.3. I have tried the following t

Re: File::Find question?

2005-03-29 Thread Steven Schubiger
On 29 Mar, S E wrote: > But, due to the naming conventions (or lack of) the only way to find > those find the files that have not been processed is to look for files > without a .txt in the file name. Is there a modification that I can > make to the below to achieve that? > print "$File::

Re: Net::Printer

2005-03-29 Thread Steven Schubiger
On 29 Mar, Brian Volk wrote: > I using the program below to send file to printer It's printing a > blank page and giving the error below. Anyone have any ideas? > C:\brian\Perl>perl send_to_printer3.pl > Use of uninitialized value in sprintf at > C:/Perl/site/lib/Net/Printer.pm line 742. > U

Re: File::Find question?

2005-03-29 Thread John W. Krahn
S E wrote: Hello! Hello, I have been working on familiarizing myself with the File::Find module. We have a process that appends a .txt once it has processed the file in a Unix environment. So, I wanted to return a list of files that have been processed by the previous process. I have been using

RE: File::Find question?

2005-03-29 Thread Wagner, David --- Senior Programmer Analyst --- WGO
S E wrote: > Hello! > > I have been working on familiarizing myself with the File::Find > module. We have a process that appends a .txt once it has processed > the file in a Unix environment. So, I wanted to return a list of > files that have been processed by the previous process. I have been

Net::Printer

2005-03-29 Thread Brian Volk
I using the program below to send file to printer It's printing a blank page and giving the error below. Anyone have any ideas? C:\brian\Perl>perl send_to_printer3.pl Use of uninitialized value in sprintf at C:/Perl/site/lib/Net/Printer.pm line 742. Use of uninitialized value in sprintf at

RE: Send file to printer

2005-03-29 Thread Brian Volk
> > Hi All, > > I was able to send the file to the printer using: copy > ($print_file, '//hp-exch/HP4100-IS'); > just like the documentation said .. :~) I just had to get > the server name correct! > > Thanks! > > Brian > > > Well, I thought I knew what I was doing. Now I am havin

RE: Send file to printer

2005-03-29 Thread Brian Volk
> -Original Message- > From: Brian Volk [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 24, 2005 11:24 AM > To: 'Bakken, Luke'; 'Perl Beginners' > Subject: RE: Send file to printer > > > > > >From: Bakken, Luke [mailto:[EMAIL PROTECTED] > > > c:\>net use lpt1: "\\hp-exch\HP LaserJe

File::Find question?

2005-03-29 Thread S E
Hello! I have been working on familiarizing myself with the File::Find module. We have a process that appends a .txt once it has processed the file in a Unix environment. So, I wanted to return a list of files that have been processed by the previous process. I have been using the below to a

RE: CGI.pm

2005-03-29 Thread Chris Devers
On Tue, 29 Mar 2005, Chris Heiland wrote: > Untested: > > if ($query->request_method() =~ m/^post$/i) { > do something; > } If you're matching against a known, fixed pattern, the string comparison operators will almost always be faster and clearer than the equivalent regex. In this cas

Re: CGI.pm

2005-03-29 Thread Chris Knipe
DOH! Something Silly(tm) Thanks ;) - Original Message - From: "Chris Devers" <[EMAIL PROTECTED]> To: "Chris Knipe" <[EMAIL PROTECTED]> Cc: "Perl Beginners List" Sent: Tuesday, March 29, 2005 9:07 PM Subject: Re: CGI.pm On Tue, 29 Mar 2005, Chris Knipe wrote: if (!$Query->request_method(

RE: CGI.pm

2005-03-29 Thread Chris Heiland
> -Original Message- > From: Chris Knipe [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 29, 2005 11:01 AM > To: beginners@perl.org > Subject: Re: CGI.pm > > Strange indeed. > > For further debuging, I did: > > print $ENV{REQUEST_METHOD}; > > This, as expected, returns POST. > > p

Re: CGI.pm

2005-03-29 Thread Chris Knipe
Ok, sorry. This now, does not make sense AT ALL useing == (which is wrong), matches. useing eq (which is right?) never matches... Surely, if I match $ENV{REQUEST_METHOD} I am matching a string value Why, oh why dear mighty will == match (and give me a warning), and eq never matches -

Re: CGI.pm

2005-03-29 Thread Chris Devers
On Tue, 29 Mar 2005, Chris Knipe wrote: > if (!$Query->request_method() eq "POST") { > exit; > } > > Using a GET / HEAD method, the IF statement never executes. Nor would it -- the exclamation point isn't in the right place. This statement is saying "if not-$query->request_method() equals POST

Re: CGI.pm

2005-03-29 Thread Chris Knipe
Strange indeed. For further debuging, I did: print $ENV{REQUEST_METHOD}; This, as expected, returns POST. print $Query->request-method(); NULL value. if ($ENV{REQUEST_METHOD} eq "POST") Does not match Another one of those ARGH moments, or am I doing something silly? -- Chris. -- Chris. I love

RE: CGI.pm

2005-03-29 Thread Chris Heiland
> -Original Message- > From: Chris Knipe [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 29, 2005 10:45 AM > To: beginners@perl.org > Subject: CGI.pm > > Lo all, > > Very quickly > > #!/usr/bin/perl > use CGI; > use strict; > use warnings; > > my $Query = new CGI; > if (!$Query

CGI.pm

2005-03-29 Thread Chris Knipe
Lo all, Very quickly #!/usr/bin/perl use CGI; use strict; use warnings; my $Query = new CGI; if (!$Query->request_method() eq "POST") { exit; } Using a GET / HEAD method, the IF statement never executes. I am trying to verify the user agent, but the above is just for my test - which is faili

RE : simple server app

2005-03-29 Thread Jose Nyimi
> -Message d'origine- > De : Peter Rabbitson [mailto:[EMAIL PROTECTED] > Envoyé : mardi 29 mars 2005 12:05 > À : beginners@perl.org > Objet : simple server app > > Hi everyone, Here is my situation. I have a windows system which > continuosly > runs a perl script, which utilizing Win32::

RE : simple server app

2005-03-29 Thread Jose Nyimi
> -Message d'origine- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Envoyé : mardi 29 mars 2005 16:48 > À : Peter Rabbitson > Cc : beginners@perl.org > Objet : Re: simple server app > > > > - Original Message - > From: Peter Rabbitson <[EMAIL PROTECTED]> > Date: Tuesday,

RE: HTML parsing

2005-03-29 Thread Charles K. Clarkson
Offer Kaye wrote: : while (defined(my $token = $parser->get_tag("font"))) { :my $data = $parser->get_text; #get the data :$data =~ s/^\s+//; #get rid of extra whitespace the :$data =~ s/\s+$//; # the beginning and end :push @all_data,$data; # save the d

Re: simple server app

2005-03-29 Thread mgoland
- Original Message - From: Peter Rabbitson <[EMAIL PROTECTED]> Date: Tuesday, March 29, 2005 5:04 am Subject: simple server app > Hi everyone, Hello, >Here is my situation. I have a windows system which > continuoslyruns a perl script, which utilizing Win32::Process and > Win32::Setup

Re: Module installation problem

2005-03-29 Thread Felix Geerinckx
On 29/03/2005, GR Kumaran wrote: > I'm in Win98, I'd downloaded the SIEPERL from CPAN and installed. And > I had downloaded MYSQL DBI also from CPAN, but do not know how to > install it into SIEPERL. I had read PPM will do, so I tried 'ppm' > alone in command prompt, then I got the following err

Re: More Regex for Newbies

2005-03-29 Thread Mike Lesser
I'm fairly new too, but s/\(.*\)//g Should work? Thanks David. The "g" sort of throws me, but I had The Epiphany last night. I'm still a little bit confused, but I'm making headway now. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: simple server app

2005-03-29 Thread Todd W
"Peter Rabbitson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi everyone, Here is my situation. I have a windows system which continuosly > runs a perl script, which utilizing Win32::Process and Win32::Setupsup is > controlling a windows only app and when triggered makes it spit

Module installation problem

2005-03-29 Thread GR Kumaran
Hello, I'm in Win98, I'd downloaded the SIEPERL from CPAN and installed. And I had downloaded MYSQL DBI also from CPAN, but do not know how to install it into SIEPERL. I had read PPM will do, so I tried 'ppm' alone in command prompt, then I got the following error message. Failed to load PPM_DA

simple server app

2005-03-29 Thread Peter Rabbitson
Hi everyone, Here is my situation. I have a windows system which continuosly runs a perl script, which utilizing Win32::Process and Win32::Setupsup is controlling a windows only app and when triggered makes it spit export files to a samba network share. From there on my main process which runs off

Re: Net::SSH::Perl error

2005-03-29 Thread Felix Geerinckx
On 29/03/2005, Lohit wrote: > i have installed openssh for windows and am able to connect using ssh > client. Now, while trying out Net::SSH::Perl module i get an error at > > my $sshh= Net::SSH::Perl->new($host); > > Can't map service name 'ssh' to port number. > What happens if you specify t

Re: HTML parsing

2005-03-29 Thread Offer Kaye
On Mon, 28 Mar 2005 15:49:38 -0500, Daniel Smith wrote: > Hi all, > > I'm brand new to Perl, and have just a little programming background. I was > tasked with parsing > a set of .html files in order to extract the data contained within some > terribly formatted tables. > Here is a sample of

Net::SSH::Perl error

2005-03-29 Thread lohit
Hi, i have installed openssh for windows and am able to connect using ssh client. Now, while trying out Net::SSH::Perl module i get an error at my $sshh= Net::SSH::Perl->new($host); Can't map service name 'ssh' to port number. this is on windows OS and i have added these entires to \etc\service

Re: HTML parsing

2005-03-29 Thread Felix Geerinckx
On 28/03/2005, Daniel Smith wrote: > I was tasked with parsing a set of .html files in order to extract > the data contained within some terribly formatted tables. [...] > Can anyone shed some light? I used HTML::Treebuilder on a similar project once: #! /usr/bin/perl use warnings;