Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3F01807C.F852E377@dessent.net> Date: Tue, 01 Jul 2003 05:37:16 -0700 From: Brian Dessent Organization: My own little world... X-Accept-Language: en,en-US MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: example needed pls: `cygpath -c ' References: <3EFE120B DOT 58A0C79E AT dessent DOT net> <20030701035742 DOT GD7604 AT ny-kenton2a-710 DOT buf DOT adelphia DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Soren Andersen wrote: > > On Sat, Jun 28, 2003 at 03:09:15PM -0700, Brian Dessent wrote: > > I was playing around with this because it seems like a handy idea. > > I use Cywin perl, but the differences shouldn't be very great. Anyway, > > I came up with the following oneliner that does what you mention above > > (passed %1 as a Windows filename, it copies the Cygwin version to the > > clipboard) > > > c:\cygwin\bin\perl.exe -MWin32::Clipboard -e "my $f=quotemeta('%1'); chomp (my $c=qx!cygpath -u $f!); Win32::Clipboard($c);" > > How on earth did you get Win32::Clipboard (or Win32::) to run > under CygPerl, Brian? The Win32:: namespace code is incomatible with > cygwinperl, any module using such cannot be built to cygwinperl AFAIK. It took a bit of work, but the perl5-porters mailing list had enough nuggets to get it going. I wrote up the steps here: http://www.dessent.net/patk/archives/000035.shtml Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/