Why does my Perl CGI complain about “Premature end of script headers”??

I'm sure someone could answer this very quickly, but I'm just new to perl... I'm trying to modify demarc (a simple ...

Is there a better way to determine elapsed time in Perl??

my $start_time = [Time::HiRes::gettimeofday()]; my $diff = Time::HiRes::tv_interval($start_time); print "\n\n$diff\...

How to print special char in Perl?

I have a special char in my variable like this my $var = "\n"; my $var_tab = "\t"; I need to print out not t...

How do I run a Perl script from within a Perl script??

I've got a Perl script that needs to execute another Perl script. This second script can be executed directly on the...

Unescaped left brace regex error?

I’m not an expert in regex and can't figure what I am supposed to change here. I get these two errors Unescaped ...

Compare two strings regardless of case size in perl?

is there anyway to compare two strings regardless of case size? For Example "steve" eq "STevE" <----- these ...

How to split a variable in Perl on tab character??

I have a variable $results generated by the following foreachloop my $result = ""; foreach $c1(sort {$a<=>$b}...

How to rebuild/reinstall dependencies of an up to date CPAN module??

I need to reinstall the dependencies of a CPAN module. Some dependencies which are usually installed are missing but...

How can I call Perl from Java??

I have a Perl module that I would like to use from Java. Is there a way to call this code using either ActiveState P...

How can I remove text within parentheses with a regex??

I'm trying to handle a bunch of files, and I need to alter then to remove extraneous information in the filenames; n...

How can I de-install a Perl module installed via `cpan`??

I am using Perl running in user space (not installed via root) and installing modules via the command-line cpan. I w...

Can't locate Switch.pm?

How do I solve this error? Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contain...

How to check if a Perl script doesn't have any compilation errors??

I am calling many Perl scripts in my Bash script (sometimes from csh also). At the start of the Bash script I want ...

How to match a substring in a string, ignoring case?

I'm looking for ignore case string comparison in Python. I tried with: if line.find('mandy') >= 0: but no suc...

How do I use the MOSS script??

I am trying to run MOSS on my Mac OS X and I don't know what mistake I am making. I am not sure whether I am running...