On 8/25/06, John W. Krahn <[EMAIL PROTECTED]> wrote:
See the link in my post for the "bug" report I already filed on this.
Ah, I see that it's been fixed (or at least documented). Thanks.
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
Tom Phoenix wrote:
> On 8/25/06, Robert Citek <[EMAIL PROTECTED]> wrote:
>
>> $ echo 'a: b' | perl -F'/: /' -lane 'print join("--", @F)'
>> a: b
>
> For some reason, the space character seems not to match a space
> character. I'd call it a bug. Other ways to match a space, like \s and
> \x20, all
Robert Citek schreef:
> Why do these two commands not produce the same output?
>
> $ perl -le 'print join("--", split(/: /, "a: b"))'
> a--b
>
> $ echo 'a: b' | perl -F'/: /' -lane 'print join("--", @F)'
> a: b
>
> From reading 'perldoc perlrun' the -F option should behave just like
> the pattern
On 8/25/06, Robert Citek <[EMAIL PROTECTED]> wrote:
$ echo 'a: b' | perl -F'/: /' -lane 'print join("--", @F)'
a: b
For some reason, the space character seems not to match a space
character. I'd call it a bug. Other ways to match a space, like \s and
\x20, all seem to work:
echo 'a: b' | p
On Aug 25, 2006, at 3:30 PM, John W. Krahn wrote:
This is a "feature" :-) This thread may help explain:
http://groups.google.com/group/perl.perl5.porters/browse_frm/thread/
2eca0c52a1b299c4/f655bddfdbf2d0d6?
lnk=st&q=&rnum=1&hl=en#f655bddfdbf2d0d6
One way to do what you want:
$ echo 'a:
Robert Citek wrote:
>
> Why do these two commands not produce the same output?
>
> $ perl -le 'print join("--", split(/: /, "a: b"))'
> a--b
>
> $ echo 'a: b' | perl -F'/: /' -lane 'print join("--", @F)'
> a: b
>
> From reading 'perldoc perlrun' the -F option should behave just like
> the patt
On Aug 25, 2006, at 2:43 PM, Robert Citek wrote:
Why do these two commands not produce the same output?
$ perl -le 'print join("--", split(/: /, "a: b"))'
a--b
$ echo 'a: b' | perl -F'/: /' -lane 'print join("--", @F)'
a: b
From reading 'perldoc perlrun' the -F option should behave just
lik
Why do these two commands not produce the same output?
$ perl -le 'print join("--", split(/: /, "a: b"))'
a--b
$ echo 'a: b' | perl -F'/: /' -lane 'print join("--", @F)'
a: b
From reading 'perldoc perlrun' the -F option should behave just like
the pattern to split. What am I missing?
Rega