RE: How to Read Files? [was: Re: learning perl 3rd vs 4th]

2008-05-25 Thread Thomas Bätzler
AndrewMcHorney <[EMAIL PROTECTED]> asked: > The spec does not allow for carriage returns or line feeds > making it a long line. Is there a way to read "x" number of bytes? $ perldoc -f read read FILEHANDLE,SCALAR,LENGTH,OFFSET read FILEHANDLE,SCALAR,LENGTH Attempts to read LENGTH

Re: How to Read Files? [was: Re: learning perl 3rd vs 4th]

2008-05-25 Thread AndrewMcHorney
Hello The spec does not allow for carriage returns or line feeds making it a long line. Is there a way to read "x" number of bytes? Andrew At 11:10 AM 5/25/2008, Rob Dixon wrote: Hi Andrew (If you are asking a new question of this group please make a fresh post with an appropriate subject

Re: Include PHP file inside the Perl script

2008-05-25 Thread Jeff Peng
On Mon, May 26, 2008 at 12:32 PM, sivasakthi <[EMAIL PROTECTED]> wrote: > Hi all, > > Is it possible to include php file inside the perl script?? > > I need the defined php variable (from php files) inside perl script.. Have you tried searching on CPAN? http://search.cpan.org/~esummers/PHP-Includ

Include PHP file inside the Perl script

2008-05-25 Thread sivasakthi
Hi all, Is it possible to include php file inside the perl script?? I need the defined php variable (from php files) inside perl script.. how can i achieve that?? Thanks, Siva

Re: LWP::Parallel concerns

2008-05-25 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: Maybe I'm wrong, but if I were to use LWP::Parallel to parse a remote site for a few hours, then couldn't this be possibly interpreted as a Denial of Service? And if could be interpreted as a possibly Denial of Service attack, what could I do to possibly avoid it? Do n

LWP::Parallel concerns

2008-05-25 Thread chadda
Maybe I'm wrong, but if I were to use LWP::Parallel to parse a remote site for a few hours, then couldn't this be possibly interpreted as a Denial of Service? And if could be interpreted as a possibly Denial of Service attack, what could I do to possibly avoid it? -- To unsubscribe, e-mail: [EM

Re: How to Read Files? [was: Re: learning perl 3rd vs 4th]

2008-05-25 Thread Rob Dixon
Hi Andrew (If you are asking a new question of this group please make a fresh post with an appropriate subject line rather than replying to the end of an old thread. Many of us have email clients that correctly display the flow of threads, and using reply makes it look as if you have something mor

Re: learning perl 3rd vs 4th

2008-05-25 Thread Matthew Whipple
On Sun, 2008-05-25 at 10:07 -0700, AndrewMcHorney wrote: > Hello > > I have been reading files with the following command: > > @source_lines = (); > You'd want to use $source_line = to get a single record at a time from the handle > This has worked until I started reading some very large f

Re: learning perl 3rd vs 4th

2008-05-25 Thread AndrewMcHorney
Hello I have been reading files with the following command: @source_lines = (); This has worked until I started reading some very large files. Is there a better way to read files? The files I am trying to read now are about 300 megabytes in size. The bad news is that the spec has no carriage

Re: log level

2008-05-25 Thread gypsy
"Chas. Owens" wrote: > On Sat, May 24, 2008 at 2:28 PM, gypsy <[EMAIL PROTECTED]> wrote: > > I downloaded a perl script from http://www.tahina.priv.at/~cm/spam/ and > > it logs its activity. I wish to have my logs exclude level 'debug'. > > > > Things tried: > > 1) Contact author -> no reply > > 2

Re: log level

2008-05-25 Thread David Moreno
Yeah. D. On Sun, 2008-05-25 at 00:36 -0400, Chas. Owens wrote: > On Sat, May 24, 2008 at 2:28 PM, gypsy <[EMAIL PROTECTED]> wrote: > > I downloaded a perl script from http://www.tahina.priv.at/~cm/spam/ and > > it logs its activity. I wish to have my logs exclude level 'debug'. > > > > Things tr