Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Pointers and References

by kcott (Bishop)
on Nov 25, 2020 at 19:51 UTC ( #11124220=note: print w/replies, xml ) Need Help??


in reply to Re^2: Pointers and References
in thread Pointers and References

"And thanks for the alias tip. I will have to park that one away for the time being because as useful as Perl one-liners are, I don't think I'm quite ready to use them that frequently."

I have aliases set up such that they're always available, regardless of frequency of usage. In ~/.bashrc, I have:

... if [ -f "${HOME}/.bash_aliases" ]; then . "${HOME}/.bash_aliases" fi ...

And ~/.bash_aliases has lines like this:

... alias vi='vim' alias view='vim -R' ... alias perle='perl -Mstrict -Mwarnings -Mautodie=:all -MCarp::Always -E +' alias perlb='perl -MO=Deparse,-p -e' ... alias apache_up='/usr/sbin/apachectl start' alias apache_down='/usr/sbin/apachectl stop' ...

You may need to adjust to suit whatever shell you're using; however, the basic principle should be applicable to any UNIX-like system. I use this with Linux for $work; with Cygwin for personal, home use; and, up until a year or so ago, with macOS (formerly Mac OS X).

— Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11124220]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2021-06-18 19:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (90 votes). Check out past polls.

    Notices?