tigervamp has asked for the wisdom of the Perl Monks concerning the following question:
This yields 3. It seems to ignore/lose the CR and EOF character. Why is this happening and how do I make it recognize all the characters so I can work with them easily.undef $/; open(FILE,"test"); $slurp=<FILE>; print length $slurp;
Thanks
tigervamp
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Special characters ignored
by pjf (Curate) on Oct 03, 2001 at 17:27 UTC | |
|
Re: Special characters ignored
by stefp (Vicar) on Oct 03, 2001 at 17:32 UTC | |
by tigervamp (Friar) on Oct 03, 2001 at 17:54 UTC | |
by Ven'Tatsu (Deacon) on Oct 04, 2001 at 22:50 UTC | |
|
Re: Special characters ignored
by jepri (Parson) on Oct 03, 2001 at 17:13 UTC | |
by Chady (Priest) on Oct 03, 2001 at 17:25 UTC | |
by tigervamp (Friar) on Oct 03, 2001 at 17:26 UTC | |
by jepri (Parson) on Oct 03, 2001 at 18:18 UTC |