I'm lost, I've tried searching, I've looked at docs, everything, but how in perl does one include a file. I know in PHP your spoilt for choice with the following for..
<?
require_once('file....
Hi all,
I am very new to programming in general so let me thank you all in advance for any help. I am trying to create a web app in Perl/CGI that will call certain test scripts in perl on ...
Just installed active Perl v. 5.10 on my laptop (Vista). I can get most of my old scripts run except those that require inout @ARGV parameter. The scripts interpreted the array as undefined....
I'm not a Perl programmer and have inherited a Perl script. I've seen this script run on another machine, so it works and I'd expect any issues running it on my machine to be configuration on...
I am taking a date parameter on command line how do I validate correct format of the date in perl and need to pass it to oracle procedure. Currently I pass procedure the date as VARCAHR2 but I...
i am trying to convert java code:
comparison[c+1]=(byte)(res & 0xff);
java array:
10 93 107 126 -5 -39 56 -65 -114 -119 70 104 95 111 33 -106 -66 -105 -82 77
my array:
10 93 107 126 ...
How do I extract the last 2 characters of a string?
Each string varies in size.
This problem's been bothering me for a while. I have a script that runs as nobody, but DNS lookups are failing.
After lots of testing, I've built a script with the basic Net::DNS examples,...
Hi Experts,
I must be out of practice, coz I can't think of a nice tidy one-liner to replace pairs of leading spaces in a text file, with tabs (one tab for each 2 consecutive spaces). Eg, ...
Does anyone know of any perl scripts that can use snmp to bring up a interface on a cisco router as well as shutting it down again ?
Hi experts:
I saw a sample perl program which used two forks, it was said using double forks to make sure one of the processes re-parent to process id 1. Can anybody explain more extensivel...
Hi,
I was wondering how i can add, remove or replace text from the middle of a file. My file is described below.
The files has hundreds of patterns and each pattern has the format descri...
Im not sure this is the right area of the site for this, but...
I have a perl script that sends an email, using sendmail on solaris, to a user list, is there a way of attaching a file to th...
When i run a .pl file, i get this error
Can't locate HTTP/Request/Common.pm in @INC (@INC contains: /usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/sit...
need to extract the path of the file between the "" from the data below! I need this urgently!
23-Oct.16:43 sg912681 checkout version "/vobs/atseintl/DBAccess/Queries/QueryGetTaxSegAb...
How do I strip out everything but the ".pdf" extension.
I would like $FileExtention to have a value of $FileExtention = ".pdf"
MY TRY:
$FileExtention = "www.domain.com\My Documents\...
dos2unix does not work for me, so I like to try do this inside perl.
I need to remove the "^M" at end of each line.
how could I do this in perl?
Hello. I think this is a simple question, but I'm not sure on the syntax of the command within Perl (or better way of doing it). Here's the setup:
I have multiple sets of files that get u...
How Can I pass perl array to Oracle stored procedure?
Can some one please provide code snippet for the same?
So I have a dropdown field on a ClearQuest form that gets populated from a group that is created in the ClearQuest Users and Groups... My array below only brings back the usernames and I want ...
I have a perl script that runs each night for libor rates and now need to create a script for index rates. I have the tickers and the file outputs exactlly like the libor file. I've taken a ...
I'm working on a site that has a mySQL database, which I need to extract for another site. This perl script is already on the site and I'm wondering if that's what it does. If so, does it writ...
How do I create a 2 dimensional array in perl and search the array for specific elements?
I would like to determine the size of a directory and all the files and the directories below them.
Simple script but Ihave no idea where to begin as I am new to perl.
I have done someth...
I would like to remove slashes from an array as it causes an error in the rest of the printing of a doc (combination of PERL and PostScript).
Or would you recommend escaping it with a backs...