Top "Perl" questions

Perl is a procedural, high-level, general-purpose, dynamic programming language, known for its native support of regular expressions and string parsing capabilities.

How can I check if a file exists in Perl?

I have a relative path $base_path = "input/myMock.TGZ"; myMock.TGZ is the file name located in input folder. …

perl
How can I convert a string to a number in Perl?

I have a string which holds a decimal value in it and I need to convert that string into a …

string perl floating-point
How do I enter a multi-line comment in Perl?

Possible Duplicate: What are the common workarounds for multi-line comments in Perl? How do I add a multi-line comment to …

perl comments multiline perl-data-structures
What's the easiest way to install a missing Perl module?

I get this error: Can't locate Foo.pm in @INC Is there an easier way to install it than downloading, …

perl installation cpan
Regex to match any character including new lines

Is there a regex to match "all characters including newlines"? For example, in the regex below, there is no output …

regex perl
Easy way to print Perl array? (with a little formatting)

Is there an easy way to print out a Perl array with commas in between each element? Writing a for …

perl
"inappropriate ioctl for device"

I have a Perl script running in an AIX box. The script tries to open a file from a certain …

perl ioctl
How do I use boolean variables in Perl?

I have tried: $var = false; $var = FALSE; $var = False; None of these work. I get the error message Bareword "false" …

perl boolean
Best way to iterate through a Perl array

Which is the best implementation(in terms of speed and memory usage) for iterating through a Perl array? Is there …

arrays perl iteration
Perl - If string contains text?

I want to use curl to view the source of a page and if that source contains a word that …

string perl string-matching