This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug In Mount?, Was [Odd/New Perl Behavior]


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]