RE: HTML to Text

2006-05-02 Thread Russ Foster
> -Original Message- > > > > Bin Server > > > Data that I need > Data that I need > > > > I want the output to just be lines of "Data that I need" stored in a > string, that I can work on each line one at a time, or in an array or > something like that would be great. I would fir

RE: [OT] I give up with the reply-to business already

2006-05-02 Thread Russ Foster
On Tue, 2 May 2006, Ryan Frantz wrote: > > -Original Message- > > From: Chad Perrin [mailto:[EMAIL PROTECTED] > > > > Please refrain from sending me two copies of an email. If it goes to > > the list, I'll get it. There's no need to include my private email > > address if you're also se

RE: Replying to the perl list (was Re: problem with whitespace notsplitting on split.)

2006-04-29 Thread Russ Foster
> -Original Message- > From: Randal L. Schwartz [mailto:[EMAIL PROTECTED] > > Your other lists coddle to the beginners who can't operate their mail > client, > at the expense of experts who *can*. Let's not hobble the experts, or the > experts will go away. > I thought this was a beginn

RE: Chomp method

2006-04-27 Thread Russ Foster
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > > > Instead of the perldoc chomp example of: > > It sounds as if you have ideas on how to improve the Perl > documentation. I heartily encourage you to contribute your > improvements by means of the p

RE: Chomp method

2006-04-27 Thread Russ Foster
> -Original Message- > From: Randal L. Schwartz [mailto:[EMAIL PROTECTED] > > However, you didn't challenge my point. You merely made a different > point. > It is *not* sufficient to merely experiment. Reading the reference doc is > mandatory for complete understanding. That's because I

RE: Chomp method

2006-04-27 Thread Russ Foster
> -Original Message- > From: Randal L. Schwartz [mailto:[EMAIL PROTECTED] > > For example, almost no amount of experimentation will stumble across > how chomp actually removes $/, not just "\n". But that's exactly why you need to try it and see. The more a document spends on the arcane de

RE: Chomp method

2006-04-27 Thread Russ Foster
Great article! Thanks for the reference. -r > -Original Message- > From: Chad Perrin [mailto:[EMAIL PROTECTED] > > > > A good way to learn how a function works is to write a small program to > > test it. There is nothing like hands-on experience. > > . . . or "Apply the T.I.T.S. principl

RE: Portal Authentication

2006-04-26 Thread Russ Foster
This could have nothing to do with Perl, or it could have everything to do with Perl. Certainly not every website uses NT authentication for controlling web site access. Chico - could you be more specific? It's easy to say to put an ID and password in a database and compare everything before per

RE: free web hosting with full CGI service?

2003-01-24 Thread Russ Foster
Can you clarify "full" CGI service? Can we assume that, since you ask on a Perl list you are looking for Perl capabilities? www.netfirms.com offers Perl CGI scripting for free and only puts a modest banner on the top (no popups or other annoying garbage). -r -Original Message- From: MJ [

RE: Size of number in scalar

2003-01-22 Thread Russ Foster
I must have missed the original thread, but this one caught my eye. I have a script that parses firewall log files and counts the bytes that meet a certain criteria. Usually I do this in one month at a time and I occasionally get negative numbers as answers when I get up over a few billion bytes.

RE: Help!!!

2003-01-06 Thread Russ Foster
If you want to do things yourself, check into MRTG and/or rrdtool. Their websites and mailing lists are full of scripts to monitor all sorts of stuff--or at least suggestions on how to do so. You'll still end of reinventing a lot, but sometimes even the open source projects can't meet everyone's

RE: Does Perl have to be installed ?

2002-12-30 Thread Russ Foster
It should work, assuming you're not doing anything funky with installed packages. You might also look into Perl2Exe (http://www.indigostar.com/perl2exe.htm) which bundles your Perl script and all necessary support files (aka packages) into a single executable to be used for the purpose you describ

RE: write to an Excel document

2002-03-12 Thread Russ Foster
(This is one of those topics that should be in the FAQ). Have you considered dumping your data into a CSV file with a CSV extension? Excel will open CSVs by default. It's the *easiest* way, but may not be what you want... -rjf > -Original Message- > From: Allison Ogle [mailto:[EMAIL

RE: Process large files quickly...how to?

2002-03-12 Thread Russ Foster
I suppose it depends on what kind of processing you are doing. Can you give us examples? For that size of data, I would make sure you are reading the file in line by line (as opposed to reading it to an array). Also, anything that prints to the screen will slow things down considerably. I know i

RE: Regex Help

2002-03-12 Thread Russ Foster
or you can remove the tick marks with the code... $line =~ s/'//g ; -rjf > -Original Message- > From: Hanson, Robert [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 12, 2002 09:45 > To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] > Subject: RE: Regex Help > > > Maybe something lik

RE: text editors

2002-03-08 Thread Russ Foster
If you're look for something Perl-specific... Open Perl IDE has syntax hilighting, breakpoints, variable watch, etc. (And it's free). http://open-perl-ide.sourceforge.net/ -rjf > -Original Message- > From: michael [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 07, 2002 23:36 > To

Number Conversion - decimal to binary to hex, etc

2002-03-07 Thread Russ Foster
Questoin #1: Is there a function or module to convert numbers to/from decimal, binary, and hex? Question #2: Is there a function or module to perform binary calculations (AND, OR, XOR)? Russell J Foster e. [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

RE: help me with a better backstepper?

2002-03-06 Thread Russ Foster
DISCLAIMER: This is UNTESTED ... It's just something to try... $OrgLine = "adshe ms0e sad qweoic,m qwod x0 vndu qiudb siu "; While length of $OrgLine > 70 { Match on =~ /(.{0,70})\s/ Print $1 Remove $1 from $OrgLine ; } Print remainder of $OrgLine; So, the regex wou

RE: Regular Expressions - matching the first time

2002-02-15 Thread Russ Foster
> As of Perl 5.6.2 (not released yet), /^(.*?):/ and > /^([^:]*):/ will have the same efficiency (read: speed). If > you're curious, currently /^.*?:/ and /^[^:]*:/ have the same > speed -- it's the capturing that killed .*?, but I have fixed that. Just to be clear, it's the capturing (.*?) o

Regular Expressions - matching the first time

2002-02-14 Thread Russ Foster
I have string, something like: $String = "aaa bbb: fffd: sdfsdf qweqd: adfsdf qwcdsfs: qwdq qchuti: qwiojd"; Now, I want to extract everything from the start of the string, up through the FIRST colon ":" -- in this case "aaa bbb". My regex looks like this: $String =~ /^(.*):/ ;

RE: Perl FAQ

2002-02-04 Thread Russ Foster
I think everyone is missing my point (or I'm just way off base on this one). There is no *good* BEGINNERS FAQ available, is there? The FAQs on perl.com are the same that are available in the distribution that are available from the perldoc command --- which are next-to-useless for a true beginne

RE: Perl FAQ

2002-02-03 Thread Russ Foster
> -Original Message- > From: Dave Benware [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 02, 2002 2:12 PM > To: Beginners perl > Subject: Re: Perl FAQ > > > Russ Foster wrote: > > > > Speaking of FAQs, is there a Perl FAQ...maybe something

RE: one question to end the day on . . .

2002-02-01 Thread Russ Foster
1: Open (INFILE, "report.txt" ; 2: While () { 3: $line =~ /\"(.+?)\"/ ; 4: $YourTextBetweenTheQuotes = $1 ; 5: # Do whatever you want 6: } 7: Close (INFILE) In English : the regular express on line 3 will grab the text between quotes (expressed as \" ) with the expression .+? The p

RE: make a executable with a perl file in windows

2002-02-01 Thread Russ Foster
Can I assume you're really not running your perl script in DOS, but rather in a command prompt on a Windows machine? If the ActiveState install didn't register the file extention .pl with perl, do it now. Make sure the default action is "open". Then you can type: C:\> myperlscript.pl There is

RE: Perl FAQ

2002-02-01 Thread Russ Foster
It appears the FAQ is from the www.perl.com web site... Thanks anyways :) Russell J Foster Subject, Wills, & Company e. [EMAIL PROTECTED] v. 630-572-0240 > -Original Message- > From: Wagner-David [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 01, 2002 4:32 PM >

Perl FAQ

2002-02-01 Thread Russ Foster
Speaking of FAQs, is there a Perl FAQ...maybe something from this newsgroup? I have found the FAQS on www.perl.com to be completely useless to a beginner. Russell J Foster Subject, Wills, & Company e. [EMAIL PROTECTED] v. 630-572-0240 > -Original Message- > From: R

RE: generate variable names

2002-02-01 Thread Russ Foster
> > I 'm asking if there a dynamic way to generate variable names. > Man, this question comes up a lot! :) I was thinking the same, maybe it should be put in the FAQ... -rjf -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Win32::GUI - Getting rid of console Window?

2002-02-01 Thread Russ Foster
The only downside to this method is that an errant Perl Window can linger around long after you think it's been closed (i.e. it won't show anywhere expect under Task Manager). I prefer making a copy of perl.exe (in C:\Perl\bin) and call it something like perlw.exe. Then register perlw.exe as a Wi

RE: Display a message

2002-01-30 Thread Russ Foster
Ned, Win32::GUI allows you to display windows in Windows. See: http://search.cpan.org/search?dist=Win32-GUI Or Jenda's site at: http://jenda.krynicky.cz/#Win32::GUI There is also a Win32-GUI-Samples (on Jenda's site) which contains, you-guessed-it, samples on how to use the module. The docs

RE: Matching for filenames with spaces in them?

2002-01-28 Thread Russ Foster
As far as the Windows Find tool goes (which I know wasn't your original question)... If the file name is in quotes, i.e. "Mortgage Market*" (WITH the quotes), it performs as expected. As far as perl goes... Try replacing the spaces with questions marks. Also, FYI: glob will return an array of n

RE: Perl Module for Server Statistics

2002-01-24 Thread Russ Foster
If it's a Windows machine, there is a Win32:PerfLib module for accessing Performance monitor statistics. See: http://search.cpan.org/doc/GSAR/libwin32-0.18/PerfLib/PerfLib.pm Russell J Foster Subject, Wills, & Company e. [EMAIL PROTECTED] v. 630-572-0240 -Original Message- From: Andre

RE: csv flat file

2002-01-24 Thread Russ Foster
Depending on the size of the file, you may not want to read the whole thing into memory first. So... open(OUTFILE,">outfile.csv") ; open(INFILE,"mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 10:30 AM To: 'Jon Molin '; 'bc ' Cc: [EMAIL PROTECTED] Subject: RE: csv flat file What I

RE: SEND

2002-01-21 Thread Russ Foster
As was pointed out before, it's probably difficult (if not impossible) to have perl access an already open telnet session. However, I have accomplished a similar task by using perl to copy to/from the Windows clipboard (of course, this precludes that you're using Windows). Here's the process (in