Chad Perrin <mailto:[EMAIL PROTECTED]> scribbled on Wednesday, April
19, 2006 6:59 PM:
> On Wed, Apr 19, 2006 at 06:51:21PM -0700, Timothy Johnson wrote:
>>
>> You mean like this?
>>
>> perl -p -e "s/\n/ /"
>
> Thanks. I looked -p up in perlrun and learned something new. It's
> not quite what I set out to learn, but learning new things is good
> anyway.
>
> I was actually looking for something doable in a file with a shebang
> line and the executable bit set.
{
local $/ = undef;
while (<>) {
s/\n/ /sg;
print;
}
}
--Ankur
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>