delorie.com/archives/browse.cgi | search |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |