As for the second question, the answer is yes and no. As far as the
programmer is concerned for the most part the basic difference between
arrays and hashes is that hashes have named keys, but you will normally use
them in different situations. They are also stored differently, but I
admi
Call me on any Friday. I'll probably be more than willing. :P
-Original Message-
From: Jenda Krynicky
To: Teresa Raymond
Cc: Perl Beginners List
Sent: 3/30/02 4:47 AM
Subject: re: unallowed chars
P.S.: The fact that I am paranoid doesn't mean they are not out to
get me!
P.P.S.: Just
> >If ( $data{$statefield} ) {
> ># OR If ( $data{uc($rs->Fields('state')->value)} ) {
> > # Process data
> >}
Arg! Don't do that nesting of the if!, use:
if (condition1) {
#action 1
}
elsif (condition2) {
#action 2
}
else {
#default
}
> SWITCH: {
>
>
Well, I just found that I can install it by MIME::Decoder::Base64,
however, why does the problem exist ? What can I do if I see
these loop-back error occur ?
- Original Message -
From: "Connie Chan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 01, 2002 5:20 AM
Subject:
Archer [[EMAIL PROTECTED]] quoth:
*>
*>how can I use a module that is located in the same directory as my .pl file?
*>I'm searching for an equivalent to the C++ #include "headerfile.h" directive,
*>which includes a header located in the current pwd.
http://www.cpan.org/misc/cpan-faq.html#How_in
Dear all,
I have a problem for installing module MIME::Base64.
I am using ActiveState Perl on Win32 OS.
When I try to use ppm "install MIME::Base64", I got :
Error installing package 'MIME-Base64': Could not locate a PPD file for package
MIME-Base64
When I try to use ppm3, "install MIME::Bas
On Sunday, March 31, 2002, at 11:50 , M z wrote:
> hello,
>
> in conjunction, I was looking into this module HTML to
> take out all the HTML I have in several files.
> Namely, the data I want is between tags
> data
I would look at getting the HTML::TreeBuilder module - sounds
like you need to g
hello,
in conjunction, I was looking into this module HTML to
take out all the HTML I have in several files.
Namely, the data I want is between tags
data
does anyone have any practical experience using this
module to do just that? what I really want to do is
read in a huge file, say slurp it i
hi
I downloaded an HTML module from CPan, downloaded to
my windows 98 machine, where I have Active Perl v5.6
installed.
I downloaded it to the C:/Perl/lib directory and after
unzipping and untarring, ran perl makefile.pl
this was successful, but then from instructions, I was
asked to install
f
On Sunday, March 31, 2002, at 05:05 , Josue Garayua wrote:
> GD::Graph::chart
I assume that you were trying something on the form
$graph = GD::Graph::chart->new(400, 300);
when it blew up???
OYE! I think I see the problem - the documentation shows
the above illustration but the wordi
Hi,
how can I use a module that is located in the same directory as my .pl file?
I'm searching for an equivalent to the C++ #include "headerfile.h" directive,
which includes a header located in the current pwd.
Thanks
Robert Spielmann
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
>> ??-
>> @state="MA CI DE IN OH";
let me try that another way - without the bugs:
vladimir: 81:] perl Switch.pl MA CI bob OH
Process Says: MA_response
Process Says: CI_response
we do not know about state bob
Mr Wizard the stateField OH unguarded at Switch.pl line 41.
vladimir: 82:] sed 's/^/##
On Sunday, March 31, 2002, at 08:25 , Zeus Odin wrote:
> #!D:\perl\bin\perl -w
> use strict;
> my %data;
>
> # fill in 11 other states
> my @state = qw(MA CI DE IN OH);
> @data{ @state } = (1) x @state;
[..]
>If ( $data{$statefield} ) {
># OR If ( $data{uc($rs->Fields('state')->value)} )
On Sunday, March 31, 2002, at 04:27 , Jonathan E. Paton wrote:
[..]
>
>> By the way, why there is a folder call LIB
>> while other one is Site/Lib , but they just
>> put modules too.. any difference ?
>
> Only speculating:
[ really well reasoned argument deleted ]
{ this is probably 'deep ba
drieux [[EMAIL PROTECTED]] quoth:
*>
*>At one facility we just 'home rolled' a solution in the
*>'build system' that outputted solaris packages - with
*>all of the stock versioning in it so that people on
*>the 'production network' could simply do
Solaris packages aren't really 'home rolling' and
Please note the error (WRONG) below. Apologies.
--
#!D:\perl\bin\perl -w
use strict;
my %data;
# fill in 11 other states
my @state = qw(MA CI DE IN OH);
# Make each element of @state a key of hash %data
# Set each value equal to 1 (true)
# Refer to Perl Cookbook
# Recipe 4
On Sunday, March 31, 2002, at 04:27 , Jonathan E. Paton wrote:
>> Would anybody tell me what's the difference
>> between using ppm to install a module and
>> downloading it and puting it in my site/lib/?
>
> Yeah, it works properly and is easier. On Unix,
> modules are installed using 'make', w
#!D:\perl\bin\perl -w
use strict;
my %data;
# fill in 11 other states
my @state = qw(MA CI DE IN OH);
# Make each element of @state a key of hash %data
# Set each value equal to 1 (true)
# Refer to Perl Cookbook
# Recipe 4.7: Finding Elements in One Array but Not Another
$data{ @state } = (
Sa wrote:
> #!/usr/bin/perl -w
> $map{"red"} = "apple";
> $map{"green"} = "grass";
> $map{"blue"} = "ocean";
> print "A string please: "; chomp ($some_string = );
> print "The value for $some_string is $map($some_string)\n";
>
> When I run it though I get the following complaint from perl:
>
> A
> Would anybody tell me what's the difference
> between using ppm to install a module and
> downloading it and puting it in my site/lib/?
Yeah, it works properly and is easier. On Unix,
modules are installed using 'make', which isn't
available on Windows.
If you look carefully, you can probably
Hi
The term $map($some_string) actually means 2 scalar variables, one is $map
and the other is $some_string. You get warning of uninitialized variable
because $map is never declared before.
The correct way to refer to a value in hash is $map{$some_string}. I think
there is a typo in the book
Ho
Hi:
I'm trying to use GD::Graph module but I can't. When I try to display a data
graphic, return the following error messages:
Can't locate object method "new" via package "GD::Graph::chart" at
C:\Inetpub\www\cgi-bin\grafica.pl line 15.
Why this can't locate object method "new"? and method "set"
Hi Everyone-
I'm just starting to learn perl programing. I'm doing this through the
O'Reilly book:
Learning Perl.
I seem to be stuck on hashes. I was doing the exercise in the back of
chapter 5. This program wants a hash with 3 keys and 3 values. It then asks
for a string. That string is the
Hi all,
would anybody tell me what's the difference between I use ppm to install a module and
I download it and put it in my site/lib/ ? by the way ? why there is a folder call LIB
while
other one is Site/Lib , but they just put modules too.. any difference ?
Have a nice day,
Connie
24 matches
Mail list logo