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 like the pattern to split. What am I missing?

Forgot to mention this is on OS X (perl 5.8.6), FC4 Linux (perl 5.8.6), and Ubuntu 6.06 (perl 5.8.7).

Regards,
- Robert
http://www.cwelug.org/downloads
Help others get OpenSource software.  Distribute FLOSS
for Windows, Linux, *BSD, and MacOS X with BitTorrent


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to