Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How to install and use Perl?
I have a book called, Learning Perl, or the "lama book" and am trying to learn to program and write small programs. This is the first language I've ever tried to learn and I have no prior knowledge of programming at all. I recently downloaded perl-5.10.0 from perl.com along with ConTEXT to write the codes. I however have no idea how to install perl and how to run the written codes. I can't even get the simple hello world code to work. I don't know how to turn the ConTEXT file into a program and run it like so. I also don't know how to install perl from the perl-5.10.0 file which just gives me a bunch of executable files and other folders.
I'm completely lost and would appreciate the help. Thanks
1 Answer
- 1 decade agoFavorite Answer
If you are on Windows download and install from
http://www.activestate.com/activeperl/
Then create a file with extension ".pl" .. example Hello.pl
type in
#!/usr/bin/perl
print "Hello World.\n";
and run it in cmd prompt by typing Hello.pl
Hope this helps and enjoy coding ... for more info go to http://www.tizag.com/perlT/perlfirstscript.php