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: 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: learning perl 3rd vs 4th

2008-05-17 Thread Randal L. Schwartz
> "Jerald" == Jerald Sheets <[EMAIL PROTECTED]> writes: Jerald> On May 17, 2008, at 12:07 PM, Randal L. Schwartz wrote: >> >> ... and shuffle a bit of content between the >> llama and alpaca to reflect the corresponding changes we've made in our >> courseware. Jerald> Courseware... Jerald>

Re: learning perl 3rd vs 4th

2008-05-17 Thread Jerald Sheets
On May 17, 2008, at 12:07 PM, Randal L. Schwartz wrote: ... and shuffle a bit of content between the llama and alpaca to reflect the corresponding changes we've made in our courseware. Courseware... Do tell. I'm interested. --jms -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: learning perl 3rd vs 4th

2008-05-17 Thread Randal L. Schwartz
> "Richard" == Richard Lee <[EMAIL PROTECTED]> writes: Richard> I was going to order 5th version in june but does anyone in here know Richard> the different between 3rd and 4th version? Is there a big Richard> difference? As I recall, the big changes between 3rd and 4th were to finally ackno

Re: learning perl 3rd vs 4th

2008-05-17 Thread Richard Lee
Rob Dixon wrote: Richard Lee wrote: Currently I own a 'learning perl' 3rd edition and I noticed that 5th version is coming out in june. What I didn't realize was that learning perl 4th edition's been out since 2005. I was going to order 5th version in june but does anyone in here know the

Re: learning perl 3rd vs 4th

2008-05-17 Thread Rob Dixon
Richard Lee wrote: > Currently I own a 'learning perl' 3rd edition and I noticed that 5th > version is coming out in june. > What I didn't realize was that learning perl 4th edition's been out > since 2005. > > I was going to order 5th version in june but does anyone in here know > the differen

learning perl 3rd vs 4th

2008-05-17 Thread Richard Lee
Currently I own a 'learning perl' 3rd edition and I noticed that 5th version is coming out in june. What I didn't realize was that learning perl 4th edition's been out since 2005. I was going to order 5th version in june but does anyone in here know the different between 3rd and 4th version?