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

Earnie Boyd earnie_boyd@yahoo.com
Thu Jan 25 14:12:00 GMT 2001


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



More information about the Cygwin mailing list