Skip Menu |

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 68687
Status: resolved
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: tc [...] blacklite.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: perl -F (with slashes)
Date: Tue, 7 Jun 2011 10:24:07 -0700
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: Tom Cruce <aaafarmclub [...] gmail.com>
OK, try this: echo "AAA:BBB:CCC" | perl -F: -ane 'print join("\n",@F)' # works echo "AAA:BBB:CCC" | perl -F/:/ -ane 'print join("\n",@F)' # doesn't work I thought you could put slashes around the delimeter... TC $ perl -v This is perl 5, version 12, subversion 3 (v5.12.3) built for MSWin32-x86-multi-t hread $ uname -a MINGW32_NT-5.1 XXXXXXXXXX 1.0.12(0.46/3/2) 2010-02-05 01:08 i686 unknown
What command prompt/shell are you using?

From standard command prompt (cmd.exe) this works fine:

d:\> echo AAA:BBB:CCC | perl -F/:/ -ane "print join(\"\n\",@F)"

--
kmx
Subject: Re: [rt.cpan.org #68687] perl -F (with slashes)
Date: Fri, 17 Jun 2011 19:11:08 -0700
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: Tom Cruce <aaafarmclub [...] gmail.com>
Well, I'm stuck on Windows at work, so I'm using: *(MinGW*, a contraction of "Minimalist GNU for Windows"...) $ uname -a MINGW32_NT-5.1 DFGCMLD001424G 1.0.12(0.46/3/2) 2010-02-05 01:08 i686 unknown $ echo AAA:BBB:CCC | perl -F/:/ -ane "print join(\"\n\",@F)" AAA:BBB:CCC $ echo AAA:BBB:CCC | perl -F: -ane "print join(\"\n\",@F)" AAA BBB CCC Thx for checking it out: TC On Tue, Jun 14, 2011 at 12:13 AM, kmx via RT < bug-Perl-Dist-Strawberry@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=68687 > > > What command prompt/shell are you using? > > From standard command prompt (cmd.exe) this works fine: > > d:\> echo AAA:BBB:CCC | perl -F/:/ -ane "print join(\"\n\",@F)" > > -- > kmx > >
Sending the previous mail has failed. Please contact your admin, they can find more details in the logs.