SPUG: itm 60 in effective perl programming
John Costello
cos at indeterminate.net
Thu Feb 24 10:35:08 PST 2005
On Thu, 24 Feb 2005, Ben Reser wrote:
> The reason is because <> has some magical effects. Which is why most of
> the people on this thread are really oversimplyfing things...
Speaking of <>, another option is to use
perl -pi.orig -e 's/\n/ /g' filename
That leaves a file named filename.orig in the directory, which may not be
desirable.
John
More information about the spug-list
mailing list