Pages

Showing posts with label PERL. Show all posts
Showing posts with label PERL. Show all posts

Tuesday, November 12, 2013

Eclipse Setup for C, C++, Java, Python, PHP, PERL, Shell Scripst, Verilog and VHDL with Vim-Like Editing

General

Install Eclipse
yum install eclipse
Vim-Like Editing
yum install eclipse-vrapper

for C/C++ (using CDT)
Install CDT
yum install eclipse-cdt

for Java (using JDT)

Install JDT
yum install eclipse-jdt

Specify Java VM
http://stackoverflow.com/questions/2030434/eclipse-no-java-jre-jdk-no-virtual-machine

for Python (using Pydev)
Install Pydev
yum install eclipse-pydev

for PHP(using PHP Eclipse)
Install PHP Eclipse
yum ibnstall eclipse-phpeclipse

for PERL (using EPIC)

Install EPIC
yum install eclipse-epic
OR
Install pad-walker for debugging
yum install perl-PadWalker

Launch Eclipse
eclipse &
Add Software Source
Select "Help/Install New Software" from menu bar
Click "Available Software Sites"
Click "Add"
Enter following information:
Name "EPIC"
Location "http://e-p-i-c.sf.net/updates"
Install "EPIC Main Components"
Install "EPIC Main Components" in the available software.
REF: http://www.epic-ide.org/download.php

for Shell Scripts (using Shelled Eclipse)
Install Shelled Eclipse
yum install eclipse-shelled

for Verilog and VHDL (using Veditor)
Install Veditor
yum install eclipse-veditor


Thursday, November 22, 2012

PERL IDE, Eclipse with EPIC

Install Eclipse
yum install eclipse

Install pad-walker for debugging
yum install perl-PadWalker

Launch Eclipse
eclipse &

Add Software Source
Select "Help/Install New Software" from menu bar
Click "Available Software Sites"
Click "Add"
Enter following information:
Name "EPIC"
Location "http://e-p-i-c.sf.net/updates"
REF: http://www.epic-ide.org/download.php

Friday, September 14, 2012

PERL Regular Expression

Modifiers
m      Matching
m/.../

s        Substitution
s/.../.../

i        Do case-insensitive pattern matching.
.../i

g       Global matching.
.../g

Meta-characters

           \        Quote the next metacharacter
           ^       Match the beginning of the line
           .        Match any character (except newline)
           $       Match the end of the line (or before newline at the end)
           |        Alternation
           ()      Grouping
           []      Bracketed Character class

Logical
           [^a-z]     No lowercase letters
            abc|def  abc or def

Sequence
         \w       Match a "word" character (alphanumeric plus "_",
                    plus other connector punctuation chars plus Unicode marks)
         \W      Match a non-"word" character
         \s        Match a whitespace character
         \S       Match a non-whitespace character
         \d       Match a decimal digit character
         \D      Match a non-digit character

Quantifiers
           *           Match 0 or more times
           +           Match 1 or more times
           ?           Match 1 or 0 times
           {n}       Match exactly n times
           {n,}      Match at least n times
           {n,m}   Match at least n but not more than m times


Examples
           s/^([^ ]*) *([^ ]*)/$2 $1/;     # swap first two words
           (ha)+     #Either ha or haha or hahaha or ...
           (eg|le)gs     #Either eggs or legs