Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: Reading a file into a string Message-ID: <11244@jpl-devvax.JPL.NASA.GOV> Date: 31 Jan 91 02:17:44 GMT References: <11235@jpl-devvax.JPL.NASA.GOV> <97130173@bfmny0.BFM.COM> <120644@uunet.UU.NET> <1991Jan31.012957.25993@convex.com> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 11 In article <1991Jan31.012957.25993@convex.com> tchrist@convex.COM (Tom Christiansen) writes: : From the keyboard of rbj@uunet.UU.NET (Root Boy Jim): : :(7) @str = ; $str = join(//,"@str"); : : If you didn't set $" to null, you'll get the "wrong" answer there, : i.e. extra spaces by default. Skip the quotes if you want. If you skip the quotes you get the wrong answer too. The value of // is likely to be 1. Larry