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
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