Re: Compile error

2008-05-06 Thread Robert Hicks
Rodrigo Tavares wrote: Hello, I create a hash, and i want take the keys. Using Deitel Book, i take this example: numbers = ( 1 => 'one', 3 => 'two', 5 => 'three', 7 => 'four', 9 => 'five', ); @hashkey = key

Re: Compile error

2008-05-06 Thread yitzle
On Tue, May 6, 2008 at 10:43 AM, Rodrigo Tavares <[EMAIL PROTECTED]> wrote: > Hello, > > I create a hash, and i want take the keys. > Using Deitel Book, i take this example: > > numbers = > ( >1 => 'one', >3 => 'two', >5 => 'three', >7

Compile error

2008-05-06 Thread Rodrigo Tavares
Hello, I create a hash, and i want take the keys. Using Deitel Book, i take this example: numbers = ( 1 => 'one', 3 => 'two', 5 => 'three', 7 => 'four', 9 => 'five', ); @hashkey = keys (%numbers); When I try

Re: PACK statement compile error

2006-09-25 Thread Peter Scott
On Thu, 21 Sep 2006 10:25:19 -0500, Tony Frasketi wrote: > sub decodeURL { >$_ = shift; >tr/+/ /; >s/%(..)/pack('c', hex($1))/eg; >return($_); > } Please don't reinvent the wheel. use URI::Escape; $unescaped = uri_unescape($url); -- Peter Scott http://www.perlmedic.com/ http://w

Re: PACK statement compile error

2006-09-21 Thread hwigoda
I think you are missing the closing `. -Original Message- >From: Tony Frasketi <[EMAIL PROTECTED]> >Sent: Sep 21, 2006 10:25 AM >To: beginners@perl.org >Subject: PACK statement compile error > >Hello list. >I'm getting the following error message whe

Re: PACK statement compile error

2006-09-21 Thread Mumia W.
On 09/21/2006 10:25 AM, Tony Frasketi wrote: Hello list. I'm getting the following error message when compiling the program listed below ... Bad name after c' at /test/test1.cgi line 22. line 22 is ' s/%(..)/pack('c', hex($1))/eg;' Need help in eliminating this error! thnx tony ===

Re: PACK statement compile error

2006-09-21 Thread Tony Frasketi
Hi list I found the problem. It was at line 10 print 'x[$x]"; should have been... print "x[$x]"; Thanks tony Tony Frasketi wrote: Hello list. I'm getting the following error message when compiling the program listed below ... Bad name after c' at /test/test1.cgi line 22. line 22

PACK statement compile error

2006-09-21 Thread Tony Frasketi
Hello list. I'm getting the following error message when compiling the program listed below ... Bad name after c' at /test/test1.cgi line 22. line 22 is ' s/%(..)/pack('c', hex($1))/eg;' Need help in eliminating this error! thnx tony = #!/usr/local/bin/perl -w use strict; # En

Why Am I Getting a Compile Error? -SOLUTION

2003-03-26 Thread Jeff Westman
Never mind (thanks) -- cockpit error. --- Jeff Westman <[EMAIL PROTECTED]> wrote: > Date: Wed, 26 Mar 2003 10:35:41 -0800 (PST) > From: Jeff Westman <[EMAIL PROTECTED]> > Subject: Why Am I Getting a Compile Error? > To: beginners <[EMAIL PROTECTED]> > > This

Why Am I Getting a Compile Error?

2003-03-26 Thread Jeff Westman
This doesn't make sense to me: line 128: @result = $t->cmd($runSQL); line 129: $ordCnt = trim($result[16]); sub trim($) { my $arg = shift; chomp($arg); $arg =~ s/^\s+//; $arg =~ s/\s+$//; return $arg; } $ perl -c conv.pl syntax error at conv.pl line 129, near "result["

Re: Compile error

2001-05-02 Thread Kailash Subramanian
Kailash From: [EMAIL PROTECTED] (Curtis Jewell) AT INTERNET on 05/02/2001 05:16 PM To: Kailash Subramanian/ATL/ALLTELCORP cc: [EMAIL PROTECTED] AT INTERNET@CCMAIL Subject: Re: Compile error -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 2 May 2001, Kailash Subramanian wrote

Re: Compile error

2001-05-02 Thread Curtis Jewell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 2 May 2001, Kailash Subramanian wrote: > > > But I see the module. > $ ls -l /opt/perl5/lib/5.6.1/PA-RISC1.1/File Wrong directory - it's not looking for the .pm file, it's looking for the .so (or whatever other extension) file that's compile

Re: Compile error

2001-05-02 Thread Kailash Subramanian
PROTECTED] AT INTERNET@CCMAIL Subject: Re: Compile error On Wed, May 02, 2001 at 04:30:08PM -0400, [EMAIL PROTECTED] wrote: : : : : All, : When I run this command, I get the following error message. : $ perl Makefile.PL : Checking if your kit is complete... : Looks good : Can't locate loa

Re: Compile error

2001-05-02 Thread Casey West
On Wed, May 02, 2001 at 04:30:08PM -0400, [EMAIL PROTECTED] wrote: : : : : All, : When I run this command, I get the following error message. : $ perl Makefile.PL : Checking if your kit is complete... : Looks good : Can't locate loadable object for module File::Glob in @INC (@INC contains:

Compile error

2001-05-02 Thread Kailash . Subramanian
All, When I run this command, I get the following error message. $ perl Makefile.PL Checking if your kit is complete... Looks good Can't locate loadable object for module File::Glob in @INC (@INC contains: /opt/perl5/lib/5.6.1/PA-RISC1.1 /opt/perl5/lib/5.6.1 /opt/perl5/lib/site_perl/5.6.1/