Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: New to PERL but how is this better than DOS?

by johngg (Abbot)
on Feb 13, 2007 at 21:43 UTC ( #599788=note: print w/replies, xml ) Need Help??


in reply to New to PERL but how is this better than DOS?

From your mention of Java Desktop it looks like you have a recent version of Solaris on your system. You should find that Perl comes already installed with the operating system. Unless you want to install extra modules that require compilation, the Perl that comes with the O/S should be sufficient for your needs. If you can start a terminal (I'm not sure where they hide them in Java Desktop but they will be on a menu somewhere) what happens if you type /usr/bin/perl -v at the prompt? If you get several lines printed with information about perl interpreter version etc. then you're in business.

To get started writing scripts you need to create a plain file to hold your code, make it executable and then use an editor to add code, something like

$ touch myscript $ chmod +x myscript $ vi myscript i (to enter insert mode) #!/usr/bin/perl # use strict; use warnings; print "Hello World\n"; <ESC> (to exit insert mode) :wq (save file and exit) $ ./myscript Hello World $

Trivial example obviously but I hope this gets you started.

Cheers,

JohnGG

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://599788]
help
Chatterbox?
[Discipulus]: Eataly but what services we have back! grins ironically..

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-11-23 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (336 votes). Check out past polls.

    Notices?