Working with REGEX

  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post May 4th, 2011, 10:21 pm

Well perl is probably most widely used as a command line program. Its definitely used for websites. Using it on the command line is pretty straight forward. You simply have to add a path to the executable in your PATH environment variable and your good to go. You may have told the installer to go a head and add perl to your PATh environment variable at install. You can check by opening a command line and running the below:

Code: [ Select ]
perl -v


Unless you installed perl in your home directory, if that returns some information about perl its probably already in your PATH.

If you want to use perl for websites you will have to learn a little about mod_perl and CGI.

http://perl.apache.org/
http://httpd.apache.org/docs/1.3/howto/cgi.html
http://www.thesitewizard.com/archive/ad ... ache.shtml
#define NULL (::rand() % 2)
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 4th, 2011, 10:21 pm

  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6130
  • Loc: Seattle, WA
  • Status: Offline

Post May 5th, 2011, 11:23 am

If you're going to learn Perl, you're much better off just writing simple scripts rather than web scripts.

Not everything has to revolve around a web server Bogey :)
The Beer Monocle. Classy.
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post May 5th, 2011, 12:24 pm

The only thing I know is web development. I don't know how to use command line.

Code: [ Select ]
perl -v
That returns perl version and some information about it so I must have perl installed correctly.

How do I make simple scripts and test them without a web server? Command line? How do I run them?
"Bring forth therefore fruits meet for repentance:" Matthew 3:8

Post Information

  • Total Posts in this topic: 18 posts
  • Users browsing this forum: No registered users and 202 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.