answersLogoWhite

0

Perl Programming

Perl was first released in 1987, it is an high-level, general-purpose, interpreted, dynamic programming language. It was created by Larry Wall. The language is influenced by a number of programming language such as Lisp, C, C++, Pascal and others.

319 Questions

How do you run perl programs in editplus?

User Avatar

Asked by Kumarhapavan

You should have perl installed in your machine.

1.Open EditPlus

2.Go to Tool->Configure User Tools..

3.Click Add Tools>>Select Program

4.Give Below Option

Menu Text:Perl

Command:C:\Perl\bin\perl.exe(Browse to location)

Argument:$(FileName)

Initial Directory:$(FileDir)

5.Click Capture Output


Write a new perl program and go to Tools->Perl to run the program


What are Perl PHP and Java Servlet's?

User Avatar

Asked by Wiki User

Perl, php and Java are all examples of programming languages.

How to read and write Excel Files with Perl?

User Avatar

Asked by Wiki User

http://search.cpan.org/~jdb/Win32-OLE-0.1709/lib/Win32/OLE.pm This link has a great example of accessing the Excel API using Perl.

Is perl a low-level or high-level programmin language?

User Avatar

Asked by Wiki User

Perl is a high-level programming language. All of the data types are abstracted, rather than operating on native scalars (char, int, double). All memory allocation and garbage collection is automatic. There is no direct memory addressing. All details of any underlying instruction set architecture (even of a virtual machine) are abstracted away.

What is ppm in perl?

User Avatar

Asked by Smallwhtite

It is a tool that comes as part of the ActiveState Perl install. It allows you to install, remove and upgrade the Perl CPAN modules installed on your computer.

What can the Faker from Perl be used for?

User Avatar

Asked by Wiki User

The Faker from Perl can be used to generate fake data. If Faker is used while writing in the Perl programming language then fake data will be created and can be used to test various formats of data.

What is 'use' in Perl?

User Avatar

Asked by Wiki User

The "use" command is the way to request additional features in perl.

For example, the statement

use Date::Parse;

will include the Date/Parse.pm module which provides two functions to parse date strings.

There are thousands of modules available and you may easily write your own modules for code that you use in several programs.

This answer naturally leads on to follow-on questions:

How do I know which features have been added by a particular "use" statement?

For standard modules (such as Date::Parse) that are usually installed on your computer, try the command

perldoc Date::Parse

on the command line. This should give you the documentation of the installed module. If this fails, go on to the next question.

For non-standard modules, you have to find the file Date/Parse.pm and look into it for documentation (this is not always informative).

Which modules are available for free?

Many Perl modules are distributed as free software. Go to http://www.cpan.org/ or http://search.cpan.org/ and browse/search the CPAN (Comprehensive Perl Archive Network).

Most likely you will initially be overwhelmed by the pure number of available modules --- but in most cases you will find that somebody has already posted some code for features that you need.

Documentation is included The "use" command is the way to request additional features in perl.

For example, the statement

use Date::Parse;

will include the Date/Parse.pm module which provides two functions to parse date strings.

There are thousands of modules available and you may easily write your own modules for code that you use in several programs.

This answer naturally leads on to follow-on questions:

How do I know which features have been added by a particular "use" statement?

For standard modules (such as Date::Parse) that are usually installed on your computer, try the command

perldoc Date::Parse

on the command line. This should give you the documentation of the installed module. If this fails, go on to the next question.

For non-standard modules, you have to find the file Date/Parse.pm and look into it for documentation (this is not always informative).

Which modules are available for free?

Many Perl modules are distributed as free software. Go to http://www.cpan.org/ or http://search.cpan.org/ and browse/search the CPAN (Comprehensive Perl Archive Network).

Most likely you will initially be overwhelmed by the pure number of available modules --- but in most cases you will find that somebody has already posted some code for features that you need.

Documentation is included

Is PERL an interpreted or compiled programming language?

User Avatar

Asked by Wiki User

Perl is both compiled and interpreted language.

In the traditional sense, Perl is a pure interpreted language. The reference Perl program is a prototypical two-stage interpreter: when a Perl script is invoked via #!/bin/perl (or similar), the perl interpreter performs a language parsing on the source code, creating an internal (to the perl interpreter) representation of program, which is then translated into binary code for execution. Every invocation of a perl program requires this translation/interpretation to be completed.

There are several projects which can take perl source code and compile it down to a binary executable (that is, bypass the whole repeated translate/interpret phase each time). However, these are NOT complete - even the best can only manage about 95% of the perl code available. That is, these perl compiler are incomplete implementations of the Perl language. They can be very useful, but are not complete substitutes for the Perl interpreter.

The real answer is that Perl was designed to be an interpreted language from the start; attempts to turn Perl into a compiled language are faced with the difficulty of Perl's sprawling syntax and complete lack of design for compilation, and thus, struggle to implement all the languages features in a compiler.

Application of Perl in bioinformatics?

User Avatar

Asked by Wiki User

Go to this site: http://www.techcuriosity.com/resources/bioinformatics/scripts_library.php For advancing programming install bioperl in a UNIX system: http://www.bioperl.org/wiki/Main_Page http://www.bioperl.org/Core/Latest/bptutorial.html If you try installing Bioperl in Windows you may loose your life any way this is the link: http://bioperl.org/Core/Latest/INSTALL.WIN Good luck Your friend James Hopkins jhopkinslb@gmail.com http://jameshopkins-mysite.blogspot.com/ http://molecularbiologytutorial.blogspot.com/

How do you make the hello world code in Perl?

User Avatar

Asked by Wiki User

First, make sure you have #!/usr/bin/perl at the top.

Then, click enter, and type:

print "Hello, World!";

After that, save it as name.pl (replace name with whatever you want to name it) and you are all done! Test it out on a web server that supports perl or the perl command line.

How do you catch Palkia on Pokemon Perl?

User Avatar

Asked by Wiki User

After you beat the seventh Gym, go to Spear Pillar (Google for a walkthrough on how to get there). After a few battles and Cyrus's ranting, Palkia will fully awaken and you will get a chance to catch him. Be warned: this is your only chance! Save before battling. I suggest confusing him right off the bat, getting his HP down just enough, maybe put him to sleep, and use a whole bunch of Ultra Balls.

Write a cobol pgm to find the Fibonacci series?

User Avatar

Asked by Wiki User

Identification division. Program-id. Fibonacci. Environment division. Data division. Working-storage section. 77 n pic 9(18). 77 n1 pic z(18). 77 m pic 9(18) value 1. 77 o pic 9(18). 77 i pic 9(4) value 1. 77 q pic x. Procedure division. Para-a. Display ( 1 , 1 ) erase. Display ( 2 , 1 ) "fibonacci numbers from 1 to 100 are:". Move 0 to n. Display " ". Display 0. Display 1. Move 0 to o. Para-b. Compute n = o + m. Move n to n1. Move m to o. Move n to m. Display n1. Add 1 to i. If i = 21 display "press tab key to view next page." accept q. If i = 41 display "press tab key to view next page." accept q. If i = 61 display "press tab key to view next page." accept q. If i = 81 display "press tab key to view next page." accept q if i = 99 go to stop-para else go to para-b. Stop-para. Display " ". Stop run.

What are two different ways to turn on warning in perl?

User Avatar

Asked by Wiki User

For Perl one-liner, use -w option on the command line. UNIX or Windows, use's the -w option in the shebang line (The first # line in the script). When using other systems, choose compiler warnings, or check the compiler documentation.

Is ruby slower than perl?

User Avatar

Asked by Wiki User

Yes, Ruby is slower than PERL. If you follow the attached link, you will see a benchmark result clearly saying so. Should you care? It depends. If program speed is the determining factor, as in going through millions of data lines, choose PERL (or better yet, a compiled language such as C or C++). In terms of programmer productivity, as in creating a working prototype/solving a small problem quickly, I think programming in Ruby is faster. YMMV.

== ==

What is the cat command in perl?

User Avatar

Asked by Wiki User

The concatenate operator in perl is a period, ie .

Why PERL is preferred over C in modern day bioinformatics algorithm development?

User Avatar

Asked by Wiki User

due to is data structure and string matching perl had captured bioinformatics tool developmantanother reason may be due to various module like bioperl etc it is not letting other lang of programing to get into this field

What are some facts about Perl?

User Avatar

Asked by Wiki User

Perl is a programming language.

Perl is an interpreted programming language.

Perl is very useful for shell scripts, application programming, and web applications.

Perl is quite easy to learn.

Perl can be, but does not have to be, object-oriented.

Perl was created by Larry Wall.

Perl has probably the best implementation of regular expressions in existence.

Who created the perl programming language?

User Avatar

Asked by Wiki User

It was invented by Larry Wall in the mid-1980's (first posted to the 'comp.sources' Usenet newsgroup in late 1987). Perl has rapidly become the language of choice for writing programs quickly and robustly across a wide range of fields - ranging from systems administration, text processing, linguistic analysis, molecular biology and (most importantly of all) the creation of dynamic World Wide Web pages. It has been estimated that about 80% of dynamic webpages worldwide are being created by Perl programs.

More and more companies are realizing that setting up a glitzy Website with lots of pretty Web pages is not enough. The Web really becomes an effective tool for you and your customers when E-Commerce steps in - when your Website is linked seamlessly to your corporate information systems.

A typical example of this is using the Web to take orders from customers.

To provide these sort of service you need to create dynamic web pages based on Web forms and image maps, often retrieving information from relational database systems. Perl provides excellent support for creating dynamic web pages and connecting to databases.

Where can one find information about Learning Perl?

User Avatar

Asked by Wiki User

There are a number of sites that provide information about how to learn the Perl programming language. They include Learn Perl, Learning Perl and Perl Tutorial Hub. Amazon and other good booksellers have a wide range of Perl books available.

What does chomp do in perl?

User Avatar

Asked by Wiki User

Most commonly it's used to remove the newline character from the end of a string or an array of strings. If the newline character isn't there, then nothing is done to the string.

There are other details involved in what chomp does, but mostly that is what it is used for.

For instance you can change which character is considered the be the newline character. If you want to know more, I would suggest reading the documentation.

How do you write a program in Perl to swap two variables without using the third one?

User Avatar

Asked by Wiki User

Use list assignment i.e. for two variables $a, $b:

($a,$b) = ($b,$a)

Can you generate DLL files from PHP scripts like you do in PERL?

User Avatar

Asked by Wiki User

You can make a .NET DLL for use in Visual Studio development projects with Phalanger 2.0.