Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^4: Convincing co-workers to learn Perl

by LAI (Hermit)
on Mar 27, 2003 at 18:32 UTC ( #246309=note: print w/replies, xml ) Need Help??

in reply to Re: Re^2: Convincing co-workers to learn Perl
in thread Convincing co-workers to learn Perl

Yeah, the first time I saw the if/fi construct I boggled. Even better is case/esac. I remember my prof's explanation of it: that *nix shell scripting was thought up by people on lots of drugs. I don't know for sure how accurate that is, but it seems to fit.

I personally am of the 'if it can be done with Perl it's probably better off done with Perl' camp. That said, nothing would ever get done without shell scripting (I am so not writing any of my rc.* in Perl), but in my experience it is most useful for simpler tasks. A shell script gets bulky and unreadable pretty quickly.



Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://246309]
[ovedpo15]: can't I use just use lib $FindBin::Bin/../ bin" asuming that p2 is in ./bin and p1 is in /config? it says "cant find" altought p2 is
[moritz]: ovedpo15 "use lib" is only for .pm files
[moritz]: if you don't have .pm file, you might to use "require" or "do" with an absolute path
[ovedpo15]: I need to use FindBin thought. does FindBin finds only modules? or it can find perl script also?

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2018-03-17 20:45 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (226 votes). Check out past polls.