em("http:///cgichart/main.exe $comline");
---
thanks,
peter
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
y [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 8:52 AM
To: Peter Lee
Cc: [EMAIL PROTECTED]
Subject: Re: connecting to program
On Tue, 31 Jul 2001, Peter wrote:
> i am trying to call a c program (main.exe) using these.
> the c program resides in a different machine from the
hi all,
im stuck on a simple form using cgi-lib.pl. i keep getting a CGIWrap
error:
execution failed.
im a novice perl guy so everything seems right to me, can
someone tell me what im doing wrong?
the scripts and the asp page passing the variables are both on
a linux machine.
thanks,
pete
hi all,
i have a new script that i put in the same directory as
other working scripts, however when i try to execute
i keep getting a "cgiwrap error: execution not permitted
...script file not found"
any ideas?
thanks,
pete
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
hi,
i just started learning perl and i'm kinda stuck
i want to pass two querystrings from an asp page to a perl script.
ie ..cgi?&tickers=yyy&refresh=x
the script accepts the tickers by itself, but when i try to add the refresh
it says
i have a compile error, here's how its coded...
yes, semicolon is there.
-Original Message-
From: Jos Boumans [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 9:39 AM
To: Peter Lee
Cc: [EMAIL PROTECTED]
Subject: Re: perl newbie
A quick glance at your code shows a missing ; at the end of
$refresh=$q->param('refresh
w which
sends the value to an asp page. ie. .asp?refresh=x&symbol=.
thanks,
peter
-Original Message-
From: Jos Boumans [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 9:45 AM
To: Peter Lee
Cc: [EMAIL PROTECTED]
Subject: Re: perl newbie
Ok, it's hard to help you witho
Hello,
the solution from John W. Krahn 'did the trick':
s!^.*/something_constant/[^/]+/!!;
Thank's a lot to John and Chas
Peter
> I've to cut off parts of an url like
> '/something_variable_1/something_constant/something_variable_2/something_va
>riable_3/
> Peter Scott <[EMAIL PROTECTED]> wrote:
>> On Sun, 30 Mar 2008 20:36:58 -0700, SecureIT wrote:
>> > I am trying to change this
>> >
>> > "cn=Bob Smith+serialNumber=CR013120080827,o=ICM,c=US"
>> >
>> > to this:
>>
Active State Perl on Win 2000. Any help/comments would be
appreciated.
Thanks.
Peter
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
s the space: in php it becomes a "+", in perl a "%20".
Which one is (academic) correct and can perl be told to behave just as
php does?
Thanks for any answer!
Peter
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://lea
is it possible to pass variables from perl to asp...
from my asp page (running on unix/apache), id like to call a perl script
(module maybe?) and
have the script return back something to the asp page, much like a function.
is that possible???
and i would like to do this without any redirections
I'm on the first few chapters of "Learning Perl" and came up with a
question. Given:
-
#!/usr/bin/perl
@array = qw ( one two three );
print @array . "\n";
print @array;
-
Can you explain why the first print statement print
I'm on the first few chapters of "Learning Perl" and came up with a
question. Given:
-
@array = qw ( one two three );
print @array . "\n";
print @array;
-
Why does the first print statement print "3" (and a carriage return)
uot;$File::Find::name\n";
}, "@ARGV";
-
This works find with no command line arguments. Doesn't "@ARGV" contain
a list of arguments, which in this case are directories to be traversed?
Clues greatly appreciated.
Peter
--
1 + 2 = 3; theref
nces in the past with this. The basic problem here is that
you always need a programmer to change the basic templates.
--
Markus Peter - SPiN AG
[EMAIL PROTECTED]
\s*(.*)\s*$/$1/;
$value =~ s/^\s*(.*)\s*$/$1/;
$$conf{$var} = $value;
}
}
}
1;
What I do not understand is that the variables in use here, namely
$var,$value,$input, and $varValueSep (reference passed to subroutine) are
all initialized! So what's the interpreter c
At 05:13 PM 6/7/01 +0200, Ondrej Par wrote:
>On Thursday 07 June 2001 16:56, Peter Cline wrote:
> > When using the -w I am getting the following set of warnings that prohibit
> > execution of the code:
> >
> > Use of uninitialized value at
> > /oracle/web
I am using strict, but thanks for the tip.
At 04:18 PM 6/7/01 +0100, you wrote:
>Use strict at the top of your program. It should point you in the right
>direction.
>I'm only a beginner but it's worth a try and should be in every module that
>you write.
Peter Cline
I
gt;Well, I think so Brain, but if we didn't have ears, we would look just
>like weasels.
>
>
>
>
>Ondrej Par <[EMAIL PROTECTED]>
>06/07/01 11:13 AM
>
>
> To: Peter Cline <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> cc:
> Subj
At 08:25 AM 6/7/2001 -0700, Martin Weinless wrote:
>take the regexp '.n+..?.?v*.'
>
>By all that is sacred, if we use the string 'supernova', there should be
>no match since there are too many characters before the 'n'
>
>However, any regexp checking code will report a match.
Atom by atom:
. -
. The key difference is that ? is greedy and
backtracking is involved. Important stuff for a regex user to understand,
though.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
form even in those
cases where the expression form will do, for consistency. Some people like
to use the expression form where possible because they can use => instead
of , and especially in the map statement (which has the same two syntax
forms) this looks very mnemonic.
--
Peter Scott
Pacifi
there. It's just a good thing to remember because
there are times when it looks cleaner to leave it out.
Peter C.
people may point out how the quoted form can actually produce a
different result, but that's only through overloading (you don't want to go
there yet, trust me). The real danger is in what I said in the previous
paragraph.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
esist pointing
out that I said that in my book :-) In this case, creating a variable
$item whose scope extends beyond what is necessary impacts maintainability
to some extent. Do what makes you happy and worry about performance only
when you have evidence that you need to.
--
Peter Scott
P
At 03:53 PM 6/7/01 -0400, Pete Emerson wrote:
>Respectfully, I disagree with this:
>
>Peter Scott wrote:
>
> > They're bad mainly because they suggest that the author doesn't understand
> > Perl well. So if I see code like that, my spidey sense starts tingling
At 10:22 PM 6/7/01 +0200, M.W. Koskamp wrote:
>- Original Message -
>From: Peter Scott <[EMAIL PROTECTED]>
>To: Byron Rendar <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
>Sent: Thursday, June 07, 2001 9:11 PM
>Subject: Re: double quotes around a variable
ival because TMTOWTDI... I
could never see myself with a C++ bride :-)
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
;Can someone point me in the right direction to fixing this?
>Thanks!
Change last line to
print IMAGE $saveres->content;
You should be testing $saveres->is_success before opening the file,
though. perldoc lwpcook.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
s (28.94 usr + 49.99 sys = 78.93
> CPU) @ 633.46/s
> (n=5)
> variations: 0 wallclock secs ( 0.03 usr + 0.00 sys = 0.03 CPU) @
> 166.67/s (n=5)
> (warning: too few iterations for a reliable count)
>
> Peter C.
>
lclock secs (28.94 usr + 49.99 sys = 78.93 CPU) @ 633.46/s
(n=5)
variations: 0 wallclock secs ( 0.03 usr + 0.00 sys = 0.03 CPU) @
166.67/s (n=5)
(warning: too few iterations for a reliable count)
Peter C.
(warning: too few iterations for a reliable count)
>
> Peter C.
>
I should have mentioned perl 5.6.1, on windows 2000 server, P3 800Mhz
.gz and A/AW/AWIN/PerlQt-1.06.tar.gz
If you prefer console-based GUIs, have a look at Term::Stool::Widget
--
Markus Peter - SPiN AG
[EMAIL PROTECTED]
perl executables when they are
installed. On some systems, perl scripts _might_ be evaluated by sh
derivatives, and if that's the case, that line will try to pass control
from the sh interpreter to the perl interpreter.
--
Markus Peter - SPiN AG
[EMAIL PROTECTED]
$add_destination = $formdata{destination};
> $add_tag = 1;
>
>}
>
>
>earlier in the script, i have
>
>my $action;
>my $add_alias;
>my $add_destination;
>my $add_tag;
>
>do i need to define my $formdata?
Yes, you should define this variable as my %formdata since it is a hash.
Peter Cline
Inet Developer
New York Times Digital
ping
information into it, so I cannot say anything about its usability.
--
Markus Peter - SPiN AG
[EMAIL PROTECTED]
uter:Kenny Szu
inner: outer:Kenny Szu
inner: outer:Kenny Szu
inner: outer:Kenny Szu
Any ideas as to why this is happening?
Thanks!
Peter Cline
Inet Developer
New York Times Digital
>
>I found my problem, you can disreagrd the last message I sent regarding
>this topic.
>
>Thanks
>Peter Cline
>Inet Developer
>New York Times Digital
>
Peter Cline
Inet Developer
New York Times Digital
;} if $ENV{'HTTP_REFERER'};
or the even more terse.
my $previous = $ENV{'HTTP_REFERER'} || "an unknown site";
Peter C.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 08, 2001 2:35 PM
ly to the list?
I use Eudora also, and it works just fine. To reply to the person who sent
the message, I hit Reply. To reply to that person and the list, I hit
Reply To All. To reply to just the list and not the sender would be rude,
but if I wanted to do it, I'd do Reply To All a
"); print "* $opt_a * $opt_b * $opt_c
+ @ARGV"' -- -a gleep -b glub -c gulp foo
* gleep * glub * gulp + foo
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
gt;here (which my company isn't big enough to really make it worthwhile).
>Or am I wrong in that?
Okay, I'll bite... what is the alternative? Meet somewhere in between? :-)
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
At 10:43 PM 6/8/01 -0400, iansmith wrote:
>On Fri, 8 Jun 2001, Peter Scott wrote:
> > I use Eudora also, and it works just fine. To reply to the person who sent
> > the message, I hit Reply. To reply to that person and the list, I hit
> > Reply To All. To reply to just
I think the useful point that somehow got buried in the sand along with the
ostrich was that security is a running battle. You *must* take every
opportunity to plug everything that could conceivably be a security hole,
even if it depends upon some other layer of security being broken
first.
At 08:54 AM 6/9/2001 -0700, Randal L. Schwartz wrote:
> >>>>> "Peter" == Peter Scott <[EMAIL PROTECTED]> writes:
>
>Peter> Securing a system today is like being Sigourney Weaver in
>Peter> "Alien"...
>
>In what way?
>
>We all
ed "symbol table",
which then of course means consuming more memory.
So it's basically suggesting you either use the object oriented interface
- if available - ( Foo->foo() ) or you use fully qualified function names
( Foo::foo() ). Also, as a rule of thumb, to avoid importing functions,
you can use require instead of use as this usually even avoids importing
default exports.
--
Markus Peter - SPiN AG
[EMAIL PROTECTED]
olaris 5.6 sun server running Netscape's web
server version 3.6
Sorry to be so vague. I would appreciate any suggestions anyone might have.
Thank You
Peter Cline
Inet Developer
New York Times Digital
At 02:43 AM 6/10/2001 -0500, bdale16 wrote:
>? How do i affect this type of result to my existing code
>if a grade of a 90-100 = an A
>and a grade of 80-90 = a B
>and a grade of 70-80 = a C
>and a grade of 60-70 = a D
>and a grade of 0-60 = a F
>
>I understand i am creating 2 more arrays but
because MYVARIABLE is not yet an environment variable, but a
bash-internal variable. That's the purpose of the "export" command in bash
- to export variables into the environment :-)
If you did:
export MYVARIABLE=astring
...
it would have worked.
--
Markus Peter - SPiN AG
[EMAIL PROTECTED]
flag for
warnings, so that you avoid undeclared variables. Also avoid passing
unchecked input to the system or using unchecked input for filenames.
There's a feature available, called tainting, which will help you locating
such misbehaviour. Use the -T switch for that. And read the perlsec
manpage for further information.
--
Markus Peter - SPiN AG
[EMAIL PROTECTED]
At 03:10 PM 6/10/2001 -0400, Tim Musson wrote:
>Anyway, the requirement is to move all files older
> than a specified age to another root folder while retaining the
> entire directory structure.
>
> For example:
> p: = d:\users\User1\WinNT\System32\notepad.exe
> We want to move it to
>
are fairly easy to
understand, its use is usually considered advanced because it requires
understanding O-O programming in Perl. If you've only just started
learning Perl you're trying to run before you can walk. Bummer, but there
it is. My advice is to get a copy of the Llama (Randal needs
upposed to be the same).
Therefore, either upgrade, or use instead of readline STDIN.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
>
> > I download a
> > module from activestate but when I try to install it I get
> the following
> > error.
> >
> G:\Perl\bin>>ppm install win32-gui.ppd
>
> Why not to visit the CPAN, take the tar.gz distribution, open
> it and run
> perl makefile.pl
> make
> make test
> make install ?
>
>
man page for your passwd, it might have an entry like this:
--stdin
This option is used to indicate that passwd should
read the new password from standard input, which
can be a pipe.
There again, when I try it, I get a message that
f. The values are the original list
elements.
EXAMPLE
$hashref = abbrev qw(list edit send abort gripe);
%hash = abbrev qw(list edit send abort gripe);
abbrev $hashref, qw(list edit send abort gripe);
abbrev(*hash, qw(list edit send abort gripe));
abbrev - create an abbreviation
ness of hashes
interpolating was not worth giving up another character that would have to
be escaped if desired literally.
>I am actually enjoying the class so far, it's definitely what I needed to
>get kick started in Perl (I just don't have the time to read all my
>O
;re concerned about perhaps we can help.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
egex?
I think the syntax you want is '!~'. The '=~' is binding, '!~' not binding.
Peter C.
is way :)
Quite :-) You want the !~ operator. What you put is != ~, which means,
"not numerically equal to the ones complement of"
>is my error in perl syntax or the regex?
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
T also.
If your perl might live in different places on Unix, there's a gnarly
construction in 'perldoc perlrun' that will find it:
#!/usr/bin/perl
eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}'
if $running_under_some_shell;
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
#Matches only as
many characters as is necessary for the entire match pattern to succeed.
#tags are in $1 and $3, content is in $2
I might have made a mistake with the above as I don't have an interpreter to run
it through at the moment,
this Boolean algebra goop.
Discrete math bites again.
Peter C.
> >$hash{s} = "T";
> >
> >
> >if(exists($hash{s}) and $hash{s} ne "T" or $hash{s} ne "F") {
> > print "inside\n";
> >}
> >else{ print "o
At 11:40 AM 6/13/01 -0500, [EMAIL PROTECTED] wrote:
>How do you evaluate a block in scalar context? Any light on this
>( or a pointer ) maybe?
$ perl -le 'do { print wantarray ? "LIST" : "SCALAR" }'
SCALAR
perlfunc should mention this under 'do', pe
ver
> print DATAFILE "\n\n" , '='x77 , "\n\n" , localtime;
No difference in this case. The . will put the things on each side in
scalar context, the , will keep them in the list context imposed by
print. For other things on each side, this can make a difference.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
iendlyM, but couldn't find a clear example of this.
A good book in this respect is "Writing CGI Application with Perl",
http://www.amazon.com/exec/obidos/ASIN/0201710145. Many examples.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
r used Email::Valid but it may be a good way to solve the problem,
I'd be impressed if it actually catches all valid addresses (and very
happy). I've always just accepted that there would be some special cases
that wouldn't be caught and put other mechanisms in place to handle those.
'Just 2 bits'
Peter C.
oks have you guys (who I assume are
>beginners too, since that's the name of this board) been reading? Turn
>me into a beginner too!
As a generalization, nothing worth learning can be learned in 24 hours. So
I wouldn't touch a book whose title was already false.
Try "Learn
At 11:17 PM 6/13/01 +, scott lutz wrote:
>Is there a command to list all installed modules?
http://www.cpan.org/misc/cpan-faq.html#How_installed_modules
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
ironment ?
Both. The former, with the lib pragma: perldoc lib. The latter, with the
PERL5LIB variable; perldoc perlrun and look for the Environment header.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
ive
capability for Perl 6: http://dev.perl.org/rfc/24.pod.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
/language.perl.com/misc/pmtools-1.00.tar.gz
That URL, last I knew, gave me a corrupted file. If it still does, try
http://history.perl.org/src/pmtools-1.00.tar.gz
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
pedantic you wish to be. The example you
pasted is not a valid IP address (maximum component value is 255).
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
used, e.g.
$$x - $x must contain reference to scalar
$$x[2] - $x must contain reference to array
2. The name portion may be replaced by a block yielding the appropriate
type of reference. This is for when you don't have a simple scalar
containing your reference. So, eg:
${func(42)} - func(42) must return reference to scalar
${$hash{ish}}{urp} - $hash{ish} must return reference to hash
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
t in a
>loop, but it will just print on STDOUT, one-after-the-other.
>
> Hope u can help..
This question was answered on this list earlier today, but needs a bit of a
delay, and make sure stdout is unbuffered:
$| = 1;
use Time::HiRes qw(usleep);
my @windmill=("\\", &
snap ---
But my Mail looks not formated.
OUTPUT is:
Das ist ein test..
Formatirte Ausgabe: 22.34
Form Ausgabe: .33
Formatirte: 1.33
xx:666.99
gesendet von xyz
Who can give a Tip ???
Thanks Peter
Peter Schopen
RZF NRW - Sachgebiet 215
Postfach 30 08 64, 40408 Düsseldorf
Tel. (02 11) 45 72- 859; Fax (02 11) 47833-065
E-Mail-Adresse: [EMAIL PROTECTED]
or one, you can't construct a 2-dimensional array without
one. Or pass multiple variable-length lists to a subroutine:
interleave([qw(see useful can)], [qw(how this be)])
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
f C programming in funds transfer on VAXes as well.
http://jobs.perl.org
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
stion of my own, how about a site/page devoted to Perl
>books and reader reviews???
You mean, like
http://www.perl.com/reference/query.cgi?section=books&x=14&y=13
and
http://www.perl.com/pub/language/critiques/index.html
and
http://perl.plover.com/reviews/
?
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
::Template
Hope this helps,
Peter C.
> could someone point me to a perldoc on HERE documents or doc
> templates?
> otherwise my script has a large amount of print ""; and
> print "<
> thanks.
>
d idea (look under
http://www.stonehenge.com/merlyn/LinuxMag/col14.html).
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
I would guess you really want #!/usr/bin/perl, spaces are meaningful. And a
-w at the end can tell you a lot.
> #! usr/bin/perl
> use strict;
>
> open (FILE_IN, "pslbingocard.dat")|| die "failed to open file\n";
You really want an 'or' here ---^^ not '||'. The operator precedence
can bite y
Gorp meant /\|/ as per Dave Cross's reply.
> I would guess you really want #!/usr/bin/perl, spaces are
> meaningful. And a
> -w at the end can tell you a lot.
> > #! usr/bin/perl
> > use strict;
> >
> > open (FILE_IN, "pslbingocard.dat")|| die "failed to open file\n";
> You really want an
n warning classes. 'use warnings' came along with 5.6,
so if you want something to work with earlier perls, stick with '-w'. And
if you intend to get all the warnings anyway, '-w' has the same effect and
is less typing.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
> > When I open (launch) my PERL interpreter (location
> > C:\Perl\bin\perl.exe) I
> > get a black screen with a blinking white line.
>
> Whoa! Don't open the Perl interpreter.
Well, he could launch the Perl interpreter. From your reaction I guess you
think he was opening it in notepad or somet
>It's also worth mentioning that if you 'use strict;' you can't declare
>you're own symbol table variables so all of your user defined variables
will
>be lexically scoped.
I need to correct myself. I said you can't declare symbol table variables
if you 'use strict', that's wrong. 'my' declares
> Also, I had not thought of converting to Palm DOC format using perl
> (silly me, it would save a mousing set of steps). I use QEX - a
> companion to QED (that lets you edit DOC's on the Palm). If anyone
> knows of a Perl module to do this, I would love to hear about it (or
> any module that w
'use vars...' declares
lexical or symbol table variables.
I hope all this helps.
Peter C.
sis.
> >
> > Now I'm stuck on the word scope. Is that like keeping the variable
> > within a sub or foreach or while?
>
>Yes, that's exactly what it is.
A useful resource:
http://nightflight.com/foldoc-bin/foldoc.cgi?query=scope
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
At 09:15 AM 6/16/2001 -0700, Ron Anderson wrote:
>Hi!
>
>Using the following hash as an example:
>
>$shash{"student1"} = join("\t", ("bob", "tyson", "room5"));
>$shash{"student2"} = join("\t", ("ron", "anderson", "room4"));
>$shash{"student3"} = join("\t", ("dave", "lee", "room2"));
>$shash{"stude
}{people}}) {
print "\t\t$person\n";
}
}
}
See how that just looks like what you had to begin with? BTW, that
"people" key is redundant, unless you have other keys at that level.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
you can't get one for some reason, that's fine; just use 'end_form'
instead of 'end_multipart_form', and it'll do the same thing.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
ot;-c", "Err", @array1);
>(yes, ugly but it is just the beginning!) this works well
>if I were to exec one at a time, I would like to fork and send all three
>execs rolling at one. any clues?
Just do three forks, each with its own exec. Then call wait() until
th
ill show you that it gets hairier than that the more robust and
capable you want to make this kind of thing, there's some learning curve ahead.
> > -Original Message-
> > From: Peter Scott [mailto:[EMAIL PROTECTED]]
> > Sent: June 17, 2001 23:01
> > To: [
The third addition is coming out in July
This page has links to all the upcoming oreilly books:
http://www.oreilly.com/catalog/new.html
http://www.oreilly.com/catalog/lperl3/
Learning Perl is the quintessential tutorial for the Perl programming
language. The third edition has not only been
is $city from the hash %state. Now we can
put it all together:
foreach my $person (@{$state{$city}{$street}{people}}) means:
Set the lexical $person in turn to each of the members of the array
referenced by the element with key 'people' in the hash referenced by the
elemen
hash{$key}
> > 2) increment $key
> > 3) add $hash{$key + 1}
>
>Ya kow, I saw that when I sent it. I think ++$key would be more
>appropriate.
No, that would:
1. Increment $key
2. Access $hash{$key} # new $key
You can't change a key in a hash. You can only access its value, or delete it.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
At 04:41 PM 6/18/01 -0400, Alonzo Hess Jr wrote:
>The latest edition is the 3rd edition. It's out, I bought it Saturday at a
>Barns & Noble.
Pardon my skepticism, but I think what you have there is PROGRAMMING Perl,
not LEARNING Perl. Does the animal on the front have a hump?
HI,
My unix system keeps saying I have a problem when I
say
use strict;
can you not use strict on unix? Please advice.
=
Peter Lemus
UNIX/NT Networks Engineer
[EMAIL PROTECTED]
--The universe too big for us to be alone; the question is who is out-there?
--A wise man will be master of his
1 - 100 of 1399 matches
Mail list logo