User Tools

Site Tools

tools:perl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tools:perl [2024/05/19 21:47] – created - external edit 127.0.0.1tools:perl [2024/08/06 05:48] (current) – external edit 127.0.0.1
Line 1: Line 1:
-{{wst>iw-import}}+{{wst>iw-polish}}
  
 ====== Perl ====== ====== Perl ======
  
 +Perl is a dynamic programming language created by Larry Wall and was first released in 1987. Perl borrows features from a variety of other languages including [[tools:c|C]], [[tools:bash]], AWK, sed and Lisp.
  
-{{tag>Tools Programming Stubs}}+Perl is usually good for searching for data and matching variables. Structurally, most people believe that Perl is a brainfuck comparable to that of [[tools:brainfuck]]. 
 + 
 +For moar info, see [[wp>Perl]]. 
 + 
 +Some of the tools the Insurgency uses, such as mt_pulse.pl, use Perl. Linux and BSD distros usually include Perl as a default package. Windows users should get Strawberry Perl and Macfags should get ActivePerl from the link below. 
 + 
 +===== How To Get Perl ===== 
 + 
 +==== Windows ==== 
 + 
 +  - Download the Strawberry Perl installer from [[https://strawberryperl.com|here]]. 
 +  - Run the program and follow the instructions 
 +  - Open Command prompt and run ''perl -v'', You should see ''The is perl..'' This means Perl is installed properly. 
 + 
 +==== Linux ==== 
 + 
 +On Ubuntu/Debian you can simply use the "apt-get" command: 
 + 
 +  sudo apt-get install perl  
 + 
 +On Redhat/Fedora: 
 + 
 +  yum install perl  
 + 
 +on SUSE: 
 + 
 +  yast install perl  
 + 
 +on Arch Linux: 
 + 
 +  pacman -S perl 
 +   
 +on Gentoo: 
 + 
 +  emerge -av perl  
 + 
 +=== Manual Install === 
 + 
 +  i.  Download Perl 5.13.1 from :  
 +        http://www.perl.com/CPAN/src/stable.tar.gz 
 +  ii. Remove the old Perl from the system before building 
 +        # rm -rf /usr/lib/perl5 
 +  p/s : Suggestion from jeremy 
 +        # mv /usr/lib/perl5 /root/perl5backup 
 + 
 +Installation: 
 + 
 +  i.   # tar xvzf stable.tar.gz 
 +  ii.  # cd perl-5.13.1 
 +  iii. For more information , # ./Configure --help 
 +       # ./Configure -de \ 
 +           -Dprefix=/usr \ 
 +           -Dcccdlflags='-fPIC'
 +           -Darchname=i686-linux  
 +  iv.  # make 
 +  v.   # make test 
 +  vi.  # make install 
 +   
 +Post-Installation: 
 + 
 +  i.   # perl -MCPAN -e shell  
 +       Just Follow step by step. Use all the Default Answer. 
 +  ii.  install Bundle::CPAN 
 +  iii. install Bundle::LWP 
 +  iv.  install Bundle::DBI 
 +  v.   install DBD::mysql 
 +   
 +To test the install, run: 
 + 
 +  perl -v  
 + 
 +Or: 
 + 
 +  GET -ed www.yahoo.com 
 + 
 +===== Learning Perl ===== 
 + 
 +Though there are several books available to someone wanting to learn Perl, O'Reilly's //"Learning Perl"// is widely considered to be the best book for newcomers to Perl. 
 + 
 +It is available, along with the rest of O'Reilly's books on Perl [[http://lulzcats.org/files/perl-bookshelf4.rar|here]]. 
 + 
 +{{tag>Tools Programming}}
tools/perl.1716155256.txt.gz · Last modified: (external edit)

Find this page online at: https://bestpoint.institute/tools/perl