more useful options | |
PerlMonks |
Re^3: Getting DBD-mysql to work with Mac OS X Lionby luis.roca (Deacon) |
on Jan 13, 2012 at 18:48 UTC ( [id://947793]=note: print w/replies, xml ) | Need Help?? |
“ if there are two copies of Perl on the same machine, how do I keep the OS (and me) from getting confused when "perl" is typed on the command line -- will I have to use a different shebang line in scripts? ” If you're using Macports it will likely be: #!/opt/local/bin/perl and if you install modules through the ports library (e.g., $ sudo port install p5-Data-Dumper). However Macports does not have every module available so you will likely still have to navigate to that directory and install modules from there using MCPAN, cpanminus etc. To confirm the directory you can just use Mac OSX's Spotlight:
Another tip: If you need to navigate to a specific location within a directory on the command line you can drag and drop that folder to the Mac OSX Terminal (The name of Apple's command line program). That will show the path. Place cd (change directory to:) in front of that path name and it takes you there. A nice trick for moving to something deeply nested.
"...the adversities born of well-placed thoughts should be considered mercies rather than misfortunes." — Don Quixote
In Section
Seekers of Perl Wisdom
|
|