Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
I have 22 years experience in IT

Are you talking about marketing, or management? ;)

and have recently been tasked with doing a lot of coding!

As opposed to... What would you normally be doing?

I am a serious DOS hacker so having to deal with Perl is a bit trivial for me

Not sure what you mean by "serious" and "trivial" there...

but I am having a serious problem right out of the box.

Well, maybe we shouldn't be surprised... Perl doesn't come in a box! If you're having trouble with something that comes out of a box, maybe you misread the label and got confused? Whatever you have that came out of that box, it's not Perl. (Or was it you that just came out of the box?)

But seriously folks, if you have a Sun workstation running Solaris, then you don't have to install Perl -- it's already there. If you've done some "DOS hacking" and worked with batch files, then you have a handle on the basics of the command line interface, which is the bread-and-butter of using any unix system like solaris. Some of the unix commands even have the same names as the DOS ones that do the same thing! (mkdir, cd)

But a lot of basic command things have different names ("ls" instead of "dir", "rm" instead of "del", "mv" instead of "ren", and so on) -- could be some tough going for you there, in which case you have my sympathy.

And then there's lots of really cool unix commands, things like "grep" and "cut" and "paste" and (shudder) "awk", that just don't exist at all in DOS (unless you installed some sort of "unix-tools-for-dos" package -- and that shouldn't come in a box either,* so if you try to get it out of a box, or if you're climbing out of a box to use it, it might not work for you).

Anyway, if you can find a command-line shell on your solaris machine (it should be showing something that ends with "$" or ">" as a command-line prompt), you can try this command:

which perl
and that should tell you the actual disk path to the perl interpreter that is already available on that machine. It'll probably be "/usr/local/bin/perl", or maybe just "/usr/bin/perl". (Whoa! don't let those forward slashes scare you... they are not option flags! That's just the "forward-thinking" way that unix has for separating directory levels, instead of the "backward" DOS way.)

Well, it's possible that instead of saying "/usr/bin/perl" or whatever, the "which perl" command might say "perl: command not found" or maybe even "no perl found in ..." -- this just means that there's nothing called "perl" in your current PATH (Aha! Another major thing that unix and DOS have in common... surely you know what PATH is for, having already hacked batch files and all.)

So if perl is not in your PATH, well, I could go on at length, but this all seems like a joke, and I've had my share of fun for one evening. Thanks, Kevin, good luck with your new tasks, and welcome to the Monastery!

(* footnote: Well, okay, I do remember something called the "MKS Toolkit" -- wow, that takes me back a couple decades -- which was the first "unix-for-dos" thing I ever heard of, and that did come in a box; this was before the Internet thing caught on, you see, when just about everything came in a box, or in padded or stiff envelopes, you know, with those 5-inch floppy disks, or the 3-inch ones that weren't really floppy at all... they didn't even have compact disks back then -- not for computers, at least. MKS appears to still be available, BTW, but I don't know if it still comes in a box... you might want to check it out, in case someone takes that solaris thing away and makes you go back to DOS.)


In reply to Re: Solaris and Icons by graff
in thread Solaris and Icons by Kevin_Raymer

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others romping around the Monastery: (6)
    As of 2014-12-20 15:52 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (96 votes), past polls