I'm having trouble finding the equivilant of solaris cut in perl
I need to cut a string such as HSTNTXTXCA and grab the state character possition 5 and 6..
solaris equiv:
TID='HSTNTXB...
Hi!
I want to use a perl-program to check, whether a program, that feeds a pipe (endless loop) is running or not:
I would use something like:
------------
die "FIFO is no pipe\n" unless ...
an't locate object method "USE" via package "strict"
when i am running script to connect oracle
pls help me to get rid of the problem
platform : linux 7.3
oracle 9.2
i install...
Here is my code
#!/usr/perl5/bin/perl
`test="cc"; export test`;
$cmd = "/usr/ucb/printenv > /tmp/1";
`$cmd`;
For some reason when I look at /tmp/1 file , i don't see the test variable...
I am using Perl to access a database by calling an Oracle Stored Procedure, and it is working, accessing the data fine, but when the program is complete, it doesn't end the process on the serv...
Hi,
I am trying to telnet to a remote windows machine using perl. I am using the following code:
use NET::Telnet ();
$remote = new Net::Telnet(Timeout => 10);
$remote->open("machine_...
How do I send this FORM using smtp
<FORM action=mailto:feedback@example.com method=post
encType=text/plain>
<P>
<INPUT TYPE="CHECKBOX" NAME="choice" VALUE="1"> Choice 1
<INPUT TYPE="CH...
i have recently installed activestate on my laptop, which is running xp. i tried to run a simple test perl script from the dos prompt and received this error message:
panic: utf16_to_utf8: o...
I have a directory with about 20 sub directories in it that has a thousands of files in them all together, I need a script to find what is the oldest file and show date and time created in whi...
Here is a simple test script that creates the error.
use Fcntl qw(:DEFAULT :flock);
my $file = "test.txt";
print "Content-type:text/html\n\n";
local *FILE;
sysopen(FILE, $file, O_WRONLY...
I have a script I put together based on another script that I have seen posted here on this site. Basically I want to take a hyphenated date and pass it to my script on STDIN and produce a pe...
Hi experts,
I am trying to download Crypt-SSLeay to support https URLs so I won't get error like 501 Protocol Scheme 'https' is not supported.
I encountered the following error :
"Fa...
How can I create a breakpoint at a line that is within a subroutine, using the perl debugger? If I type, "b 177", where 177 is within a subroutine, I'm informed that "Line 177 not breakable". ...
I have some code that prints the first three lines of a text file. However, I'd like to modify it so that it prints only the text (up to the end of the line) that comes after the following "ta...
The following code, as I'm sure one of you experts will know, is not executing as expected:
foreach (@cpus) {
$cpu = $_;
foreach (@prefixes) {
$prefix = $_;
}
`compos...
i forgot wiether i use ASCII or binary to transfer perl .cgi and .pl files?
I have an NT Share that is NFS exported and being mounted on an AIX 4.2.1 system. Before I write anything to that mounted NFS volume, I want to make sure that it is in fact mounted otherwise I...
hello there,
i want the perl script for sending an email.The problem was attached below as a file attachement.
Reddy.
=**************************************
= Name: Administrator Log Backup Script
= Description:This code was original mad
= e for personal use to monitor all my lin
= ...
Hello,
I have got one sql command which has got several "go" commands. I wan to
1. Remove go commands
2. And create separate array elements whereever go was found.
For. e.g.
SQL1...
I have a simple finite directed acyclic graph (DAG) stored in two tables
- Nodes (node primary key)
- Arrows (parent , child, primary key (parent, child))
Both parent and child in the A...
I'm trying to run this perl script on RHEL5 but I keep getting this error "Can't locate Digest/Perl/MD5.pm in @INC". The rest of the error message actually lists what @INC contains (paths). ...
What does this in Perl do :
@$array1=map{defined $_ ? $_ : 'X' } @$array1 ;
Thanks in advance.
Hi,
I made a csv file on a windows machine, its contents are just like:
5 10 15
2 4 6
3 6 9
I tokenize the input, then just print the matrix as a test. I print brackets around...
I need to extract values from a xml file which would look like this
<E Name="E" RdfName="EnumA" Namespace="abc">
<Label Label="E"A/>
<EnumValue Name="S" RdfName="xyz" Value="1" Namesp...