Re: Limit on "fmt" buffer size? Loose much of long line.
From: Fred Ma (fma_at_doe.carleton.ca)
Date: 09/15/04
- Previous message: rc: "Re: Limit on "fmt" buffer size? Loose much of long line."
- In reply to: rc: "Re: Limit on "fmt" buffer size? Loose much of long line."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 15 Sep 2004 16:46:19 GMT
rc wrote:
>
> Hmm, i've forgot about the double spaces. In the example i've sent
> you, i've put $/=" ", which means that the input record separator is
> one space. Unfortunately, you cant use a regex for this, so you cant
> say $/=" +" to split on one or more spaces. As "perldoc perlvar"
> states:
>
> Remember: the value of "$/" is a string, not a
> regex. awk has to be better for something. :-)
>
> So, you can change it to " ", but the it won't wrap the other lines,
> but maybe that's not a problem for you.
Thanks for clearing that up. I actually wasn't all that bent on
learning enough perl right away to understand the script (thesis
defense in less than 24 hours puts a few other priorities ahead).
As I said, though, such time invested is invaluable in the long
term. For now, I'll stick with the awk. Thanks.
Fred
- Previous message: rc: "Re: Limit on "fmt" buffer size? Loose much of long line."
- In reply to: rc: "Re: Limit on "fmt" buffer size? Loose much of long line."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|