Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Apparently-From: Message-ID: <3A70A4FC.B06A9531@yahoo.com> Date: Thu, 25 Jan 2001 17:13:16 -0500 From: Earnie Boyd Reply-To: Earnie Boyd X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Josh Schulte CC: cygwin AT cygwin DOT com Subject: Re: Bug In Mount?, Was [Odd/New Perl Behavior] References: <67677D360C1FD411BB4000B0D02080418A5FDB AT eqexchange DOT equildom DOT equilibrium DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Josh Schulte wrote: > I went to the trash a dredge up your script. > > PERL SCRIPT > ----------- > > #!/usr/local/bin/perl > > @what = split(/\n/, `cat contents`); > > foreach $line (@what) > { > print "***>$line<-\n"; > } > I changed the #! line to #!/bin/env perl > CONTENTS OF FILE > ---------------- > > line one > line two > line three > MY RESULTS: ----------- ***>line one<- ***>line two<- ***>line three<- Could be that you have \r\n in your contents file. Could be that you've more than one version of perl installed. Note, the current perl is located at /usr/bin/perl not /usr/local/bin/perl. Cheers, Earnie. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple