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 the following resource http://www.perl.com/pub/a/2003/11/21/slurp.html which says pretty much the same thing as the perldoc you recommended. I solved the problem. It was a different issue than I originally thought. I was testing the slurping functionality by printing to standard out. 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 display was not what I anticipating. Kind of a stupid error on my part. Glad its fixed though. Thanks to everyone for responding. Regards, Renee Quoting "John W. Krahn" <[EMAIL PROTECTED]>: > 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 windows machine, and running my scripts on a Linux > box. > > I get the same problem on both machines. > > > > If I set the local($\ = "\r") > > I can get a line by line read of the file. > > However, if I set the > > local($\=undef) > > or > > local($\="") > > $\ is the *OUTPUT RECORD SEPARATOR* so it will have no effect on how > files are > read in. > > > > The script will only read in the first line of the file, and then quit. > > I got a read of the byte code in java, and the endline character is > indeed > > "\r". > > My question is, why can't I slurp in the entire file? > > perldoc -q "How can I read in an entire file all at once" > > > > John > -- > use Perl; > program > fulfillment > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > Renee Halbrook Bioinformatics Programmer The Carnegie Institution of Washington Department of Plant Biology 260 Panama Street Stanford, CA 94305 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>