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?

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