Skip Menu |

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

Report information
The Basics
Id: 37620
Status: rejected
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: leonard [...] umn.edu
Cc:
AdminCc:

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



Subject: inconsistencies between unix perl and win32 strawberry perl
Date: Fri, 11 Jul 2008 10:56:56 -0500
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: Leonard Miller <leonard [...] umn.edu>
I noticed the problem when trying out some one liners: perl -pe 'tr/A-Z/a-z/' testfile This should printout testfile in lowercase, however the case does not change. my win32 perl: C:\>perl -v This is perl, v5.10.0 built for MSWin32-x86-multi-thread Copyright 1987-2007, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. ---------------------------------------------------------------------------------- my linux perl: [leonard@bastion-1 ~]$ perl -v This is perl, v5.8.5 built for i386-linux-thread-multi Copyright 1987-2004, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page.
Subject: Re: [rt.cpan.org #37620] AutoReply: inconsistencies between unix perl and win32 strawberry perl
Date: Fri, 11 Jul 2008 11:36:57 -0500
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: Leonard Miller <leonard [...] umn.edu>
Close this ticket, It works correctly if you use double quotes: perl -pe "tr/A-Z/a-z/" file Thank you for your time. Leonard Bugs in Perl-Dist-Strawberry via RT wrote: Show quoted text
> Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "inconsistencies between unix perl and win32 strawberry perl", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [rt.cpan.org #37620]. Your ticket is accessible > on the web at: > > http://rt.cpan.org/Ticket/Display.html?id=37620 > > Please include the string: > > [rt.cpan.org #37620] > > in the subject line of all future correspondence about this issue. To do so, > you may reply to this message. > > Thank you, > bug-Perl-Dist-Strawberry@rt.cpan.org > > ------------------------------------------------------------------------- > I noticed the problem when trying out some one liners: > perl -pe 'tr/A-Z/a-z/' testfile > > This should printout testfile in lowercase, however the case does not > change. > > my win32 perl: > C:\>perl -v > > This is perl, v5.10.0 built for MSWin32-x86-multi-thread > > Copyright 1987-2007, Larry Wall > > Perl may be copied only under the terms of either the Artistic License > or the > GNU General Public License, which may be found in the Perl 5 source kit. > > Complete documentation for Perl, including FAQ lists, should be found on > this system using "man perl" or "perldoc perl". If you have access to the > Internet, point your browser at http://www.perl.org/, the Perl Home Page. > > > > ---------------------------------------------------------------------------------- > my linux perl: > [leonard@bastion-1 ~]$ perl -v > > This is perl, v5.8.5 built for i386-linux-thread-multi > > Copyright 1987-2004, Larry Wall > > Perl may be copied only under the terms of either the Artistic License > or the > GNU General Public License, which may be found in the Perl 5 source kit. > > Complete documentation for Perl, including FAQ lists, should be found on > this system using `man perl' or `perldoc perl'. If you have access to the > Internet, point your browser at http://www.perl.com/, the Perl Home Page. > > > >
Subject: Re: [rt.cpan.org #37620] inconsistencies between unix perl and win32 strawberry perl
Date: Fri, 11 Jul 2008 12:57:20 -0400
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: "David Golden" <dagolden [...] cpan.org>
On Fri, Jul 11, 2008 at 11:57 AM, Leonard Miller via RT <bug-Perl-> I noticed the problem when trying out some one liners: Show quoted text
> perl -pe 'tr/A-Z/a-z/' testfile
It's a shell quoting issue. You can't use single quotes with the Windows command line. Try this: Show quoted text
> perl -pe "tr/A-Z/a-z/" testfile
Works for me. It does make one-liners annoying. I wind up using qq() a lot. David
NOTABUG
Subject: [rt.cpan.org #37620] inconsistencies between unix perl and win32 strawberry perl
Date: Tue, 08 Mar 2011 22:49:00 +0100
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: Magnus Mikkelsen <cactus1978 [...] gmail.com>
Hi Show quoted text
>On Fri, Jul 11, 2008 at 11:57 AM, Leonard Miller via RT<bug-Perl-> I >noticed the problem when trying out some one liners: > perl -pe 'tr/A-Z/a-z/' testfile > >It's a shell quoting issue. You can't use single quotes with the >Windows command line. >
Try this: Show quoted text
> > perl -pe "tr/A-Z/a-z/" testfile > >Works for me. > >It does make one-liners annoying. I wind up using qq() a lot. > >David
Funny though singlequotes workes fine for cygwins perl distribution, even if its started from the windows shell: <windows shell snip start> C:\cygwin\bin>perl -e 'print "Hello world"' Hello world C:\cygwin\bin>perl -v This is perl, v5.10.1 (*) built for i686-cygwin-thread-multi-64int (with 13 registered patches, see perl -V for more detail) <windows shell snip stop> And if I try with Strawberry: <windows shell snip start> C:\strawberry\perl>perl -e 'print "Hello world"' Can't find string terminator "'" anywhere before EOF at -e line 1. C:\strawberry\perl>perl -v This is perl, v5.10.1 (*) built for MSWin32-x86-multi-thread <windows shell snip start> Regards Magnus Mikkelsen