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
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
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
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
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
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
===
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
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
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
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["
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
-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
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
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:
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/
15 matches
Mail list logo