Re: how to parse blank-line-separated records

2003-09-16 Thread David T-G
Bob, et al -- ...and then Bob Showalter said... % % David T-G wrote: % > % > suddenly occurred to me that I could probably change my % > record separator % > from \n to \n\n (a blank line) and grab the whole record that way. % % Yes, or set $/ = '' to get "paragraph" mode. That's a little more

Re:

2003-09-16 Thread x.c.v
Dan Anderson wrote: > > He is right. Although I am new to Perl, I have had some very dumb users > break my PHP scripts by inputting things like "eighteen dollars and 0 > cents" in a form with an explicit $ sign in front. Sometimes "dumb users" can be quite creative: href="http://sitefinder.v

Re:

2003-09-16 Thread Chuck Fox
No matter how foolproof you make, the fools keep getting smarter. Chuck [EMAIL PROTECTED] wrote: Dan Anderson wrote: > > He is right. Although I am new to Perl, I have had some very dumb users > break my PHP scripts by inputting things like "eighteen dollars and 0 > cents" in a form with a

problem with DynaLoader.pm

2003-09-16 Thread Fischer Ulrich
Hi I'm new on this List, and perhaps it is the wrong place. Here is my problem: I upgraded my SuSE Linux from version 7.3 (perl 5.6..) to 8.2. (perl 5.8.0). Now I get the following error: Can't load '/sw/bin/dislin/perl/Dislin.so' for module Dislin: /sw/bin/dislin/perl/Dislin.so: undefined symb

Re: problem with DynaLoader.pm

2003-09-16 Thread Steve Grazzini
On Tue, Sep 16, 2003 at 04:06:28PM +0200, Fischer Ulrich wrote: > I upgraded my SuSE Linux from version 7.3 (perl 5.6..) to 8.2. > (perl 5.8.0). > > Now I get the following error: > > Can't load '/sw/bin/dislin/perl/Dislin.so' for module Dislin: > /sw/bin/dislin/perl/Dislin.so: undefined symbol:

big switching...

2003-09-16 Thread LoneWolf
I have a 12 field 3000 line file (| delimited) and need to check the 7th entry of each line to see what it is, and based on that it needs to be written out to a file with a new entry in the 7th spot. I could do it with a few entries to check, but the permutation is of 253 different choices. Examp

RE:

2003-09-16 Thread Chetak Sasalu M
Any tool available for indentation of perl code in hp unix **Disclaimer Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity

RE:

2003-09-16 Thread Dan Muey
> **Disclaimer** > ** I hate it when people 'Dis' me! :) > > Information contained in this E-MAIL being proprietary to > Wipro Limited is > 'privileged' and 'confidential' and intended for use only by > the individual or entity to which

RE: big switching...

2003-09-16 Thread Paul Kraus
Not tested While (){ my @record = split /\|/; if ($record[6]){ #remember arrays start counting at zero do what ever you want with the data here } } HTH Paul -Original Message- From: LoneWolf [mailto:[EMAIL PROTECTED] Sent: Tuesday,

RE: big switching...

2003-09-16 Thread Paul Kraus
Oppps Should be if ($record[6] ). If you used it as is if ($record[6]) its just going to see if something is a there. -Original Message- From: Paul Kraus [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 11:02 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: big

Re:

2003-09-16 Thread zsdc
Chetak Sasalu M wrote: Any tool available for indentation of perl code in hp unix http://perltidy.sf.net/ -ZSDC -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: big switching...

2003-09-16 Thread Jenda Krynicky
From: LoneWolf <[EMAIL PROTECTED]> > I have a 12 field 3000 line file (| delimited) and need to check the > 7th entry of each line to see what it is, and based on that it needs > to be written out to a file with a new entry in the 7th spot. I could > do it with a few entries to check, but the perm

PERLTK

2003-09-16 Thread Eric Walker
Anyone know how I can set up a bind event to alow a menu button such as say "File" to show the sub menu? I have F in file underlined and want to be able to hit like alt-f and get the sub menu to show. Any Ideas or examples? EDOG

Converting PHP file

2003-09-16 Thread Mike Blezien
Hello all, is the a module or scripting method, in Perl, to strip a PHP file of it's coding and convert it to a pure static HTML file?? thx's -- MikeBlezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! http://www.thunder-rain.c

Re: Converting PHP file

2003-09-16 Thread George Schlossnagle
On Tuesday, September 16, 2003, at 01:07 PM, Mike Blezien wrote: Hello all, is the a module or scripting method, in Perl, to strip a PHP file of it's coding and convert it to a pure static HTML file?? A simple substitution like s/<\?php.*??\?>//gs should do the trick, but I am skeptical that

Re: Converting PHP file

2003-09-16 Thread Mike Blezien
Thanks George,... we are considering issues you've noted below, and are looking into that too. Basically we want to take the PHP file as it would be displayed in the browser and convert it to a plain static HTML file. It maybe a waste of time tho. Thx's for the info -- MikeBlezien =-=-=-=-=-=-

Re: Converting PHP file

2003-09-16 Thread George Schlossnagle
On Tuesday, September 16, 2003, at 01:32 PM, Mike Blezien wrote: Thanks George,... we are considering issues you've noted below, and are looking into that too. Basically we want to take the PHP file as it would be displayed in the browser and convert it to a plain static HTML file. It maybe a

Re: Converting PHP file

2003-09-16 Thread Mike Blezien
Not having much background in PHP, that's what I am trying to figure out, is how to grab the file after it's been generated by the PHP script, to create the static HTML file... I know this is not the proper list for this question, but I was hoping someone on the list may have done this, and coul

Re: big switching...

2003-09-16 Thread John W. Krahn
Lonewolf wrote: > > I have a 12 field 3000 line file (| delimited) and need to check the 7th > entry of each line to see what it is, and based on that it needs to be > written out to a file with a new entry in the 7th spot. I could do it with > a few entries to check, but the permutation is of 25

Re: Converting PHP file

2003-09-16 Thread David T-G
Mike, et al -- ...and then Mike Blezien said... % % Hello all, % % is the a module or scripting method, in Perl, to strip a PHP file of it's % coding and convert it to a pure static HTML file?? I speak PHP :-) Since you want "pure static HTML" I'll figure that you really want the output of th

Re: Converting PHP file

2003-09-16 Thread Todd Wade
"Mike Blezien" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Not having much background in PHP, that's what I am trying to figure out, is how > to grab the file after it's been generated by the PHP script, to create the > static HTML file... I know this is not the proper list for t

Any Suggestions for Programmer Needing To Know Perl by Tomorrow?

2003-09-16 Thread Dan Anderson
My local pointy haired boss decided I should learn Perl over the weekend -- specifically to interact with databases and use in CGI programming. With the job market being what it is I said "Sure" and picked up O'Reilly's "Programming Perl". After a lot of reading I think I understand the basic str

Re: Converting PHP file

2003-09-16 Thread Mike Blezien
Thanks all for the feedback, apologize for going off-topic, it kinda happened that way while in trying to figure out away to do this. thx's -- MikeBlezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! http://www.thunder-rain.com W

Re: Any Suggestions for Programmer Needing To Know Perl by Tomorrow?

2003-09-16 Thread awards
Hi, You mentionned CGI do you need to know perl for Web programming? If so I suggest two kind of books one to learn PERL and another to integrate perl in website. "Dan Anderson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > My local pointy haired boss decided I should learn Per

breaking the loop

2003-09-16 Thread Johnson, Shaunn
Howdy: I'm trying to find the best solution for breaking out of a loop when editing a list of files. I have a script that: * gets a list of files * opens the files with a 'foreach $f(@list)' * does a 'while <> { ... } close (FILE)' The script works, but if I run it, it loops continually and ed

RE: breaking the loop

2003-09-16 Thread Paul Kraus
Perldoc -f last Perldoc -f next -Original Message- From: Johnson, Shaunn [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 4:22 PM To: perl beginners Subject: breaking the loop Howdy: I'm trying to find the best solution for breaking out of a loop when editing a list of files

Re: Any Suggestions for Programmer Needing To Know Perl by Tomorrow?

2003-09-16 Thread Jenda Krynicky
From: Dan Anderson <[EMAIL PROTECTED]> > My local pointy haired boss decided I should learn Perl over the > weekend -- specifically to interact with databases and use in CGI > programming. With the job market being what it is I said "Sure" and > picked up O'Reilly's "Programming Perl". After a lot

Re: Full Fleged Perl Apps

2003-09-16 Thread Douglas Lentz
Bob Showalter wrote: Dan Anderson wrote: I'm learning Perl. Currently i can create some nifty little apps that scroll across the Linux console. But they look like garbage compared with a real app. (i.e. Vi or Emacs or anything like that). Is there a way to use Perl to output aesthetically go

RE: Any Suggestions for Programmer Needing To Know Perl by Tomorr ow?

2003-09-16 Thread Tim Johnson
My best suggestion: consult the list if you're completely stuck, being sure to articulate your problem, including what you have already tried. Also, for the best answers, send the appropriate question to the appropriate list. Go to Perl.org and find the mailing lists for CGI and DBI. -Origin

Re: Any Suggestions for Programmer Needing To Know Perl by Tomorrow?

2003-09-16 Thread shardisty
Wow! No pressure from above then I think the Programming Perl book covers some rudimentary use of the CGI & DBI modules. To create a simple web service, you just need to know how to bolt it all together. A couple of websites to look at for CGI: http://www.webdevelopersjournal.com/columns/cgi1

OT: Conceptual -- Spam stopper script

2003-09-16 Thread Jerry Rocteur
Hi, I've been analyzing my SPAM by replying to it lately and find that MOST email addresses where the SPAM originates do not exist.. Nothing new here.. What I'd like to do is to write a script that accesses my pop mail, gets the From: address, verifies it and if it is a valid address, acc

RE: Conceptual -- Spam stopper script

2003-09-16 Thread Dan Muey
> Hi, > > I've been analyzing my SPAM by replying to it lately and find > that MOST > email addresses where the SPAM originates do not exist.. Nothing new > here.. > > What I'd like to do is to write a script that accesses my pop mail, > gets the From: address, verifies it and if it is a v

Re: breaking the loop

2003-09-16 Thread Jeff 'japhy' Pinyan
On Sep 16, Johnson, Shaunn said: >* gets a list of files >* opens the files with a 'foreach $f(@list)' >* does a 'while <> { ... } close (FILE)' > >The script works, but if I run it, it loops >continually and edits (then re-edits) the files. >I think I could use a lock file to do until I >get a pa

Re: breaking the loop

2003-09-16 Thread John W. Krahn
Shaunn Johnson wrote: > > Howdy: Hello, > I'm trying to find the best solution for breaking > out of a loop when editing a list of files. > > I have a script that: > > * gets a list of files > * opens the files with a 'foreach $f(@list)' > * does a 'while <> { ... } close (FILE)' > > The scri

Re: OT: Conceptual -- Spam stopper script

2003-09-16 Thread Dan Anderson
Yes it is possible. I forget the algorithm off the top of my head but you can open up a connection to port 25 to see if a connection is made. And it would cut down on spam considerably. That is so brilliant I may do it myself. -Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Conceptual -- Spam stopper script

2003-09-16 Thread Hanson, Rob
You will probably run into a few issues. First you need to fetch the MX record for the domain before you can even connect. After that you could use the SMTP verify user command to see if the user exists, but I think you might find that many SMTP servers will not give you a reliable answer. I thi