Okay, I know this has to be simple, but because I am trying to truncate
or remove a special character I've run into a roadblock. Here's what I
want to do.
$value = "12345)" ;
How do I change $value so that the trailing ")" is removed. In
otherwords with the given example, how do I manipulat
I have implemented Nagios, and wanted to run this perl script to
interrogate my Oracle systems. This really isn't a coding question, but
rather a setup or execution question. I would like to understand why I
am getting the following error when I run check_oracle_instance.pl
natively from the linu
-Original Message-
From: Chris Devers [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 22, 2005 3:17 PM
To: Bret Goodfellow
Cc: Perl Beginners List
Subject: Re: finding needle in a haystack
On Wed, 22 Jun 2005, Bret Goodfellow wrote:
> All right, I know how to do this in REXX beca
All right, I know how to do this in REXX because there is a word()
function, but how do I do this in Perl. I want to read in one record at
a time, that has space-delimited fields. There may be multiple spaces
between the words. I want to be able to get for example, the 4th word
of the record. H
Simple question to answer, I hope. I am running on an HP-UX system, and
would like to retrive the UNIX system's host-id (name of box). Is there
a function to do this?
I have a script that is reading input from ARGV. The script is being
passed a file name as follows:
datefile.pl c:\program files\IBM\SQLLIB\DB2\db2diag.log
The problem I am running into is that the space is not recognized in the
argument. All that I get passed to is is c:\program. How do
The File::Find::name didn't seem to make any difference. I still have
to be in the directory that I want to search. Hmmm.
-Original Message-
From: Wagner, David --- Senior Programmer Analyst --- WGO
[mailto:[EMAIL PROTECTED]
Sent: Friday, March 11, 2005 3:13 PM
To: Bret Goodf
I am writing a script to list out a directory's contents, showing the
number of days since modified. The problem I am having is that the
script doesn't list out the "modified time" unless I change to the
directory being listed. If I change to the directory I want to list,
then all works okay. Is
Hi all,
I am trying to evaluate a string, and determine if the last charater of
the string has a backslash '\' . The piece of code I am using doesn't
appear to work. What I've found with this peice of code is that if the
string does contain a \, then the following code still adds another
slash.
Hi all,
I am attempting to list out the contents of a directory, and print the
last time accessed. The data-time is not correct though. I am running
this code on a Windows XP workstation. There doesn't seem to be a real
easy way to get the timestamps of directories. H Here is the
co
Here's a simple perl script where I am listing out the contents of a
directory. When it completes, the following error occurs. How do I
eliminate this?
Use of uninitialized value in length at C:\BegPerl\deldir.pl line 23.
Below is the script:
#!/usr/bin/perl
# Dsrch1.plx
# use strict ;
use
I'm getting the following error in my code. If I define $i as my $i
then everything works fine. What's wrong?
# while1.pl
use strict ;
use warnings ;
$i = 1;
while ($i < 10) {
print "I am at $i\n";
i++;
}
# while1.pl
Global symbol "$i" requires explicit package name at
C:\BegPerl\wh
Folder1
udbbck01.bak
Folder2
udbbck02.bak
Folder3
udbbck03.bak
|
|
|
Folder(n-1)
udbbck(n-1).bak
Folder(n)
udbbck(n).bak
Bret Goodfellow
Questar Gas,
S.L.C., UT
13 matches
Mail list logo