Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: perl callable from bash?by FunkyMonk (Chancellor) |
on Apr 13, 2009 at 09:12 UTC ( [id://757184]=note: print w/replies, xml ) | Need Help?? |
If you've copied your file to /bin you should be able to run it by just typing bl filename. Using ./bl tells the shell to run the file called bl that's in the curent directory. The way I do it is to make my own bin in my home directory with mkdir $HOME/bin and add it to my path by adding export PATH=$HOME/bin:$PATH at the end of $HOME/.bashrc assuming you're using bash as your shell. You still need to make the executable using chmod as previously mentioned.
In Section
Seekers of Perl Wisdom
|
|