Xavier Noria wrote:
use File::Slurp;
my @lines = read_file($file);
Wrong, that code assumes $file has the runtime platform conventions,
which is not the case.
OK sorry, sheesh... missed the part about it being a screwy file.
Can you change the crewy line ending to a normal one then us
On Oct 28, 2005, at 16:16, JupiterHost.Net wrote:
Hello,
My question is, why can't I slurp in the entire file?
Because you're fiddling with things that ought not be fiddled
with ;p (IE $\)
instead:
use File::Slurp;
my @lines = read_file($file);
Wrong, that code assumes $file has th
Hello,
My question is, why can't I slurp in the entire file?
Because you're fiddling with things that ought not be fiddled with ;p
(IE $\)
instead:
use File::Slurp;
my @lines = read_file($file);
or you can use Perl 6's slurp() via a Perl6 module (perl6::Slurp maybe
???) see cpan for det
On Oct 28, 2005, at 15:29, Renee Halbrook wrote:
In Mac OS X the newline is \012 and that is what "\n" is eq to. I was
told in MacPerl (for MacOS pre X) the underlying codes of \n and \r
were switched (wrt to the rest of platforms), but still \n is the
logical newline everywhere.
--The specs
> In Mac OS X the newline is \012 and that is what "\n" is eq to. I was
> told in MacPerl (for MacOS pre X) the underlying codes of \n and \r
> were switched (wrt to the rest of platforms), but still \n is the
> logical newline everywhere.
--The specs the file was created from:
Filemaker versi
On Oct 28, 2005, at 15:09, Jeff 'japhy' Pinyan wrote:
On Oct 28, Renee Halbrook said:
My perl interpreter display does not recognize "\r" for a newline
character
for standard out, so it simply printed the same line over on top
of the
previous line, making it look like it was only reading o
On Oct 28, Renee Halbrook said:
My perl interpreter display does not recognize "\r" for a newline character
for standard out, so it simply printed the same line over on top of the
previous line, making it look like it was only reading one line total.
The slurping was working fine, but the displa
Hi,
Thanks for responding to my email.
It looks like I had a typo in my explanation of the slurping problem. Thanks
for catching that.
Actually, I had the correct input field separator in my code, and simply
miswrote it in my explanation.
The perldoc is always a good place to start.
I was using th
Renee Halbrook wrote:
> Hi,
Hello,
> I'm not sure if this is the correct group to post this question to. If there
> is a better forum for this kind of question, please let me know.
>
> I am trying to slurp a file that was written on Mac OSX, using a standard
> text editor.
> I am developing on a
Hi,
I'm not sure if this is the correct group to post this question to. If there
is a better forum for this kind of question, please let me know.
I am trying to slurp a file that was written on Mac OSX, using a standard
text editor.
I am developing on a windows machine, and running my scripts on a
10 matches
Mail list logo