# perl

Tags: perl
• ## cvs annotate and standard error redirection2015-03-13

First, some background. I'm trying to use cvs annotate within a Perl script invoked from a ksh command line to find out who's using bad hex constants in their source code and dole out justice appropriately. I'd like to use stdout for this program str

Tags: cvs, perl, ksh, stderr
• ## Why I cannot read file line by line in perl script? 2015-03-10

I have a perl script, which has to read a file line by line. line in the file: 0060|9592014|A001-9592014-0060|82769|NOVARTIS PHARMA SERVICES AG BASEL|51671|NOVARTIS AG|A+|SWITZERLAND|Guarantees Issued|12/31/2016|12/31/2016|0|0|0|0|0|0|0|0|0|29014.096

Tags: perl
• ## How to load a bunch of perl modules into a perl script2015-02-25

This is what I wish to do: In every script I make/develop I always call perl libraries and sub routines like: #! /directory/bin/perl system('source /directory/.cshrc&'); use Net::Domain qw(hostname hostfqdn hostdomain); use Time::Local; use Time:

Tags: perl
• ## Perl Module Net::DNS - calling "tsig" method on resolver object results in error2015-02-16

recently the linux-distribution i use (recent gentoo) upgraded the net-dns package to version 0.74 (from 0.66). from this time using TSIG on queries and updates does not work anymore. former i used: $resolver = Net::DNS::Resolver->new(...);$resol

Tags: perl, dns, perl module, gentoo

• ## How to assign variable value to constant in perl?2015-01-29

I have following code #!/usr/bin/perl -w use warnings; use constant ARRAY => "XCC320G"; print ARRAY; print "Enter ur choice\n"; chomp($choice = <STDIN>); ARRAY=>$choice; print ARRAY; Currently my code is with respect to constant. Now I wa

Tags: perl
• ## Is there a way to keep perl test data in memory between test runs?2015-01-26

When I run my test cases via prove, it takes about 20 - 25 seconds to load my test data before the first test runs. Is there a way I could have a separate, persistent process load the test data in memory, and prove just retrieve a copy instantly each

Tags: testing, perl
• ## file watching in a directory using perl2015-01-19

i need to watch files that fall under a directory.I have coded the below script in perl . but it is not doing what i want . whenever a file or files arrives , it has to do a movement . And then it has to keep watching files again. the script should b

Tags: perl, file watcher
• ## Perl how to provide full or absolute path to fcopy() function2015-01-19

I am new to perl and want to write a basic program to copy the entire directory contents to another directory. My first hurdle is that I need to give the absolute path for source and destination and I can't seem to get the following code to do that:

Tags: perl, absolute path
• ## Get page source code with WWW::Selenium?2015-01-19

I am trying to get the source code of a web-page. I tried using LWP::Simple, but it didn't help. I installed WWW::Selenium package using ppm and but get the error "undefined subroutine &main::get_html_source called at line 6." here's the code I u

Tags: perl, selenium
• ## Perl - Error "Type of arg 1 to each must be hash (not hash element)"2015-01-19

I'm getting this error when attempting to run this script - on this line Type of arg 1 to each must be hash (not hash element) while (my ($action,$value) = each($cameras{$camera}{\$mode})) { How do I fix this error? --------------Solutions-----------

Tags: perl, syntax, hash