Re: eval command line

2002-03-23 Thread John W. Krahn
Bob Ackerman wrote: > > i get error when trying this line. macosx. perl 5.6.1. > > perl -e"for (55..75) { print chr($_) }" > > it says: > Unmatched ". > > problem with '$_'. shell must be looking at it and messing it up. > how do i get the '$' through tcsh shell? Since $_ is the default argu

Re: Searching Directories

2002-03-23 Thread John W. Krahn
Deecee wrote: > > I am trying to search a particular directory and all of it's subdirectories > for files that are newer that 1/1/00 and delete them. It seems like it > should be rather simple but I am racking my brain to try and put it > together. > > I have a hunch that the answer lies in the

eval command line

2002-03-23 Thread bob ackerman
i get error when trying this line. macosx. perl 5.6.1. perl -e"for (55..75) { print chr($_) }" it says: Unmatched ". problem with '$_'. shell must be looking at it and messing it up. how do i get the '$' through tcsh shell?

Re: Escaping HTML tags

2002-03-23 Thread bob ackerman
easiest i would think is here-doc. I like: open (OUTP, ">hdtst") or die "no can open\n"; print OUTP < > Severe newbie that would RTFM if I would have brought it home and i'm not > asking the right monestary search strings so i humbly ask for your help.. > . > > i'll go get going on a fresh pot o

Re: Escaping HTML tags

2002-03-23 Thread root
I'll gotta stop sending over-caffinated emails...wow, -w works... Scott Wahlstrom wrote: > Severe newbie that would RTFM if I would have brought it home and i'm not asking the >right monestary search strings so i humbly ask for your help... > > i'll go get going on a fresh pot of coffee.

Escaping HTML tags

2002-03-23 Thread Scott Wahlstrom
Severe newbie that would RTFM if I would have brought it home and i'm not asking the right monestary search strings so i humbly ask for your help... i'll go get going on a fresh pot of coffee...anyhew - snippet away... #!/perl open(OUTPUT, "/www/html/toc.html"); print (OUTPU

Re: Sort of Conceptual, Syntax, and modules related questions

2002-03-23 Thread Dave Storrs
Hi Connie, > On Sat, Mar 23, 2002 at 05:30:25AM +0800, Connie Chan wrote: > > 1. When I open a text file with *lines, however, I just want to read the > > first line, would this be a good idea ? open (FILE, "textfile.txt"); > > $firstline = ; close (FILE); would this process run till EOF, or > >

Searching Directories

2002-03-23 Thread Deecee
I am trying to search a particular directory and all of it's subdirectories for files that are newer that 1/1/00 and delete them. It seems like it should be rather simple but I am racking my brain to try and put it together. I have a hunch that the answer lies in the 'stat' command and using Fil

Re: joining 2 strings

2002-03-23 Thread Paul Johnson
On Sat, Mar 23, 2002 at 03:42:47PM -0500, Jim Conner wrote: > Perl ignores the white space. Well, most white space anyway. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: joining 2 strings

2002-03-23 Thread Jim Conner
It does *not* matter :) $stringc = $stringa .",". $stringb; is the same as: $stringc = $stringa.","$stringb; Perl ignores the white space. - Jim At 19:01 03.22.2002 -0500, K Clark wrote: >would someone tell me whether or not the problem with what the original >post is

Re: joining 2 strings

2002-03-23 Thread Jim Conner
There is nothing wrong with the line that does the concatenation in sub 'add'. You have a problem somewhere else it seems. What was the exact error again? - Jim At 23:59 03.22.2002 +, Matthew Harrison wrote: >the script is part of a web-based role-playing-game. the line in question >is i

A script to understand the output from a search engine HELP!!

2002-03-23 Thread Bruce Ambraal
Hi all, Part I If you get the script below to work then it needs to be modified: I have pulled the seach.html file as follows: I went to link http://srch.overture.com) then search for word "help", then I save the result as file named search.html Then I wrote the script below to extract and find

Re: Script extracting the output from a search engine - Help!

2002-03-23 Thread Jeff 'japhy' Pinyan
On Mar 23, Bruce Ambraal said: >Running the script produce lots of errors. which you have not reproduced here. >#!/usr/bin/perl - strict Uh... no. That 'strict' needs to go somewhere else. #!/usr/bin/perl -w use strict; >open(A_file,""); You've got an extra > in there. open A

Script extracting the output from a search engine - Help!

2002-03-23 Thread Bruce Ambraal
In the script below I am trying to to extract the results from performing a search on the word "help" at http://srch.overture.com Running the script produce lots of errors. What am I doing wrong, is my rules correct. Help #!/usr/bin/perl - strict open(A_file,""); my@ary = ; while($n <

RE: help with - use HTML::Template;

2002-03-23 Thread Brian
HTML::Template needs to be obtained from CPAN (search.cpan.org is a great place to go for all your module needs). http://search.cpan.org/search?dist=HTML-Template Also, you can check your error logs for your web server to get details of what is going on. You might also want to try: use CGI::Ca

Re: help with - use HTML::Template;

2002-03-23 Thread A Taylor
Hi William, thanks for your time and help so far - it is much appreciated. My perl interpreter is definately pointing to the correct file - I have run other perl scripts successfully that point to #!/usr/bin/perl. It is only when I try to use 'use HTML::Template;' that I get a server error. Ca