connecting to program

2001-07-31 Thread Peter
em("http:///cgichart/main.exe $comline"); --- thanks, peter -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: connecting to program

2001-07-31 Thread Peter
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

simple form and cgi

2001-08-01 Thread Peter
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

y me

2001-08-01 Thread Peter
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

perl newbie

2001-05-15 Thread Peter
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...

RE: perl newbie

2001-05-15 Thread Peter
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

RE: perl newbie

2001-05-15 Thread Peter
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

Re: [solved] How to cut off parts of an url

2009-07-22 Thread Peter
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/

RE: parse x.500 DN and change order displayed

2008-03-31 Thread peter
> 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: >>

Perl/TK hang on windows ?

2004-05-28 Thread Peter
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>

urlencode and uri_escape

2005-01-14 Thread Peter
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

Pass variables from perl to asp

2002-07-12 Thread Peter
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

context, printing, and concatenation

2003-06-23 Thread Peter
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

context, printing, and concatenation

2003-06-24 Thread Peter
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)

File::Find basic usage

2003-07-09 Thread Peter
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

Re: Accessing printer functions

2001-06-07 Thread Markus Peter
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]

Need help interpreting a warning

2001-06-07 Thread Peter Cline
\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

Re: Need help interpreting a warning

2001-06-07 Thread Peter Cline
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

RE: Need help interpreting a warning

2001-06-07 Thread Peter Cline
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

Re: Need help interpreting a warning

2001-06-07 Thread Peter Cline
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

Re: regexp question

2001-06-07 Thread Peter Scott
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: . -

Re: regexp question

2001-06-07 Thread Peter Scott
. 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

Re: directory listing to array

2001-06-07 Thread Peter Scott
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

RE: double quotes around a variable

2001-06-07 Thread Peter Cornelius
there. It's just a good thing to remember because there are times when it looks cleaner to leave it out. Peter C.

Re: double quotes around a variable

2001-06-07 Thread Peter Scott
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

Re: Variable scope behavior in foreach loop

2001-06-07 Thread Peter Scott
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

Re: double quotes around a variable

2001-06-07 Thread Peter Scott
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

Re: double quotes around a variable

2001-06-07 Thread Peter Scott
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

Re: double quotes around a variable

2001-06-07 Thread Peter Scott
ival because TMTOWTDI... I could never see myself with a C++ bride :-) -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com

Re: problem saving binary data

2001-06-07 Thread Peter Scott
;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

RE: directory listing to array

2001-06-07 Thread Peter Cornelius
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. >

RE: directory listing to array

2001-06-07 Thread Peter Cornelius
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.

RE: directory listing to array

2001-06-07 Thread Peter Cornelius
(warning: too few iterations for a reliable count) > > Peter C. > I should have mentioned perl 5.6.1, on windows 2000 server, P3 800Mhz

Re: GUI Packages

2001-06-08 Thread Markus Peter
.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]

Re: Doubt in understanding

2001-06-08 Thread Markus Peter
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]

Re: Use of uninitialized value in string eq at ./adpanel.pl line 37.

2001-06-08 Thread Peter Cline
$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

Re: graphing modules

2001-06-08 Thread Markus Peter
ping information into it, so I cannot say anything about its usability. -- Markus Peter - SPiN AG [EMAIL PROTECTED]

Nested froeach loops

2001-06-08 Thread Peter Cline
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

Re: Problem with nested foreach loop

2001-06-08 Thread Peter Cline
> >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

RE: if then else

2001-06-08 Thread Peter Cornelius
;} 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

Re: [META] Rants (was:Re: space)

2001-06-08 Thread Peter Scott
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

Re: getopt @ARGV

2001-06-08 Thread Peter Scott
"); 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

Re: Sun Education Perl Training

2001-06-08 Thread Peter Scott
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

Re: [META] Rants (was:Re: space)

2001-06-08 Thread Peter Scott
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

Re: Understanding Randal's answer

2001-06-09 Thread Peter Scott
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.

Re: Understanding Randal's answer

2001-06-09 Thread Peter Scott
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

Re: Method interface vs Function Interface

2001-06-09 Thread Markus Peter
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]

Erratic server errors apparently caused by missing header.

2001-06-07 Thread Peter Cline
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

Re: numb array getting value for letter array

2001-06-10 Thread Peter Scott
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

Re: Cannot detect environment variables

2001-06-10 Thread Markus Peter
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]

Re: CGI parser and stuff

2001-06-10 Thread Markus Peter
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]

Re: Archive old files

2001-06-10 Thread Peter Scott
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 >

Re: stringify question

2001-06-11 Thread Peter Scott
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

Re: readline fails on Sun machines?

2001-06-11 Thread Peter Scott
upposed to be the same). Therefore, either upgrade, or use instead of readline STDIN. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com

RE: Installing new Modules problem

2001-06-11 Thread Peter Cornelius
> > > 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 ? > >

Re: Getting Perl to interact with passwd

2001-06-11 Thread Peter Scott
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

Re: Text::Abbrev module?

2001-06-11 Thread Peter Scott
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

Re: SunEd Perl Class - Day 1

2001-06-11 Thread Peter Scott
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&#x

Re: checking for the @ symbol

2001-06-11 Thread Peter Scott
;re concerned about perhaps we can help. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com

RE: ensuring that there *is* an \@ symbol

2001-06-12 Thread Peter Cornelius
egex? I think the syntax you want is '!~'. The '=~' is binding, '!~' not binding. Peter C.

Re: ensuring that there *is* an \@ symbol

2001-06-12 Thread Peter Scott
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

Re: In perl, for unix, the header of a script has the path to perl.

2001-06-12 Thread Peter Scott
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

Re: non-greedy *

2001-06-13 Thread Peter Cornelius
#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,

RE: RE: Unexplainable behavior

2001-06-13 Thread Peter Cornelius
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

Re: map question

2001-06-13 Thread Peter Scott
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

Re[2]: Problem printing a system value to a filehandle (windows)

2001-06-13 Thread Peter Scott
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

Re: Noobie question

2001-06-13 Thread Peter Scott
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

RE: testing on email characters

2001-06-13 Thread Peter Cornelius
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.

Re: This is odd to me

2001-06-13 Thread Peter Scott
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

Re: Installed Modules

2001-06-13 Thread Peter Scott
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

Re: Initializing / Changing values of @INC

2001-06-13 Thread Peter Scott
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

Re: Lazy lists in Perl ?

2001-06-14 Thread Peter Scott
ive capability for Perl 6: http://dev.perl.org/rfc/24.pod. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com

Re: Perl UNIX commands

2001-06-14 Thread Peter Scott
/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

Re: regex matching

2001-06-14 Thread Peter Scott
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

Re: Can't understand Reference interpretation

2001-06-14 Thread Peter Scott
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

Re: Spinning Wheel!!!

2001-06-15 Thread Peter Scott
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=("\\", &

perl and sendmail

2001-06-15 Thread Peter . Schopen
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]

RE: Can't understand Reference interpretation

2001-06-15 Thread Peter Scott
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

Re: job search

2001-06-15 Thread Peter Scott
f C programming in funds transfer on VAXes as well. http://jobs.perl.org -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com

Re: Reading versus Referencing Books

2001-06-15 Thread Peter Scott
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

RE: html formatting in perl script

2001-06-15 Thread Peter Cornelius
::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. >

Re: #!/perl -w, Strict, & Diagnostics

2001-06-15 Thread Peter Scott
d idea (look under http://www.stonehenge.com/merlyn/LinuxMag/col14.html). -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com

RE: Update: Where to begin??!!??

2001-06-15 Thread Peter Cornelius
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

RE: Update: Where to begin??!!??

2001-06-15 Thread Peter Cornelius
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

RE: #!/perl -w, Strict, & Diagnostics

2001-06-15 Thread Peter Scott
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

RE: Stuck in the Perl Beginners Panic-Zone!

2001-06-15 Thread Peter Cornelius
> > 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

RE: Re[4]: When to use "my"?

2001-06-15 Thread Peter Cornelius
>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

RE: Re[2]: Reformating text

2001-06-15 Thread Peter Cornelius
> 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

RE: Re[4]: When to use "my"?

2001-06-15 Thread Peter Cornelius
'use vars...' declares lexical or symbol table variables. I hope all this helps. Peter C.

Re: Re[4]: When to use "my"?

2001-06-15 Thread Peter Scott
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

Re: Sorting hash by element

2001-06-16 Thread Peter Scott
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

Re: deep hash

2001-06-16 Thread Peter Scott
}{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

Re: upload, attach, email

2001-06-16 Thread Peter Scott
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

Re: fork

2001-06-17 Thread Peter Scott
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

RE: fork

2001-06-17 Thread Peter Scott
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: [

re: Which is the newest edition of Learning Perl

2001-06-18 Thread Peter Pitchford
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

Re: deep hash

2001-06-18 Thread Peter Scott
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

Re: $hash{$_}++

2001-06-18 Thread Peter Scott
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

Re: 3rd edition of Learning Perl

2001-06-18 Thread Peter Scott
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?

use strict

2001-06-18 Thread Peter Lemus
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   2   3   4   5   6   7   8   9   10   >