RE: [Perl-unix-users] Install Perl under Solaris 9

2005-09-13 Thread lists
Tom, You have to put /usr/local/bin in your path before /usr/bin PATH=/usr/local/bin:$PATH export PATH I typically set this in the /etc/profile and have not had any adverse effects from doing so. Also, you can specifically path your perl scripts by doing #!/usr/local/bin/perl -Original Me

RE: [Perl-unix-users] sub all but last

2004-05-27 Thread lists
Mario, This will do what you're wanting: 1. #!/usr/bin/perl 2. 3. $string = "abc.def.ghi.jkl"; 4. print "pre-sub: $string\n"; 5. 6. $string =~ s/\./_/g; 7. 8. print "post-sub: $string\n"; Note line 6 is what actually does the substitution. You have to escape the period because Perl will think