is it possible directly copy the perl module file to some path and make it work?
like the attached rpm? I am trying to get this work. I have no root permission and i have to migrate some perl code from solaris to rhel 6. sybase dblib is heavily used in the solaris box. any ideas welcom. thanks.
I am trying to use a script to replace the header of each file, whose filename are stored within the array $test, using the sed command within a Perl script as follows:
$count = 0;
while ( $count < $#test )
{
`sed -e 's/BIOGRF 321/BIOGRF 332/g' ${test} > 0`;
`cat 0 >... (2 Replies)
Hi ,
This script working for fine if pass script-name.sh Jul/10/2007 ,I want to pass 20070710(yyyymmdd) .Please any help it should be appereciated.
use Time::Local;
my $d = $ARGV;
my $t = $ARGV;
my $m = "";
@d = split /\//, $d;
@t = split /:/, $t;
if ( $d eq "Jan" ) { $m = 0 }... (7 Replies)
I need to process a file line-by-line using some value from a shell variable
Something like:perl -p -e 's/$shell_srch/$shell_replace/g' input.txt
I can't make the '-s' work in the '-p' or '-n' input loop (or couldn't find a syntaxis.)
I have searched and found... (4 Replies)
so in unix this command works works and shows me a list of directories
find . -name \*.xls -exec dirname {} \; | sort -u | > list.txt
but when i try running a perl script to run this command
my $query = 'find . -name \*.xls -exec dirname {} \; | sort -u | > list.txt';... (2 Replies)
How can i print the output of a perl script on a unix console and redirect the same in a log file under same directory simultaneously ?
Like in Shell script, we use tee, is there anything in Perl or any other option ? (2 Replies)
I am completely new to perl programming. My father is helping me learn said programming language. However, I am stuck on one of the assignments he has given me, and I can't find very much help with it via google, either because I have a tiny attention span, or because I can be very very dense.
... (4 Replies)
Hi all,
Not sure if this should be in the programming forum, but I believe it will get more response under the Shell Programming and Scripting FORUM.
Am trying to write a customized df script in Perl and need some help with regards to using arrays and file handlers.
At the moment am... (3 Replies)
we create a HP-UX software depot with a new perl-modul. after installation of the software depot, the perl module
i can't find with instmodsh in the inventory for installed Perl modules.
- i have learned of using instmodsh command : i find out what modules are already installed on my system.
... (0 Replies)
My issue is that the perl script (as I have done it so far) created empty branches when I try to check some branches on existence.
I am using multydimentional hashes: found it as the best way for information that I need to handle. Saing multidimentional I means hash of hashes ... So, I have
... (2 Replies)
I have reviewed many examples on-line about running another process (either PERL or shell command or a program), but do not find any usefull for my needs way. (Reviewed and not useful the system(), 'back ticks', exec() and open())
I would like to run another PERL-script from first one, not... (1 Reply)
Discussion started by: alex_5161
1 Replies
LEARN ABOUT REDHAT
perlmachten
PERLMACHTEN(1) Perl Programmers Reference Guide PERLMACHTEN(1)NAME
README.machten - Perl version 5 on Power MachTen systems
DESCRIPTION
This document describes how to build Perl 5 on Power MachTen systems, and discusses a few wrinkles in the implementation.
Compiling Perl 5 on MachTen
To compile perl under MachTen 4.1.4 (and probably earlier versions):
./Configure -de
make
make test
make install
This builds and installs a statically-linked perl; MachTen's dynamic linking facilities are not adequate to support Perl's use of dynami-
cally linked libraries. (See hints/machten.sh for more information.)
You should have at least 32 megabytes of free memory on your system before running the "make" command.
For much more information on building perl -- for example, on how to change the default installation directory -- see INSTALL.
Failures during "make test" on MachTen
op/lexassign.t
This test may fail when first run after building perl. It does not fail subsequently. The cause is unknown.
pragma/warnings.t
Test 257 fails due to a failure to warn about attempts to read from a filehandle which is a duplicate of stdout when stdout is attached
to a pipe. The output of the test contains a block comment which discusses a different failure, not applicable to MachTen.
The root of the problem is that Machten does not assign a file type to either end of a pipe (see stat), resulting, among other things
in Perl's "-p" test failing on file descriptors belonging to pipes. As a result, perl becomes confused, and the test for reading from
a write-only file fails. I am reluctant to patch perl to get around this, as it's clearly an OS bug (about which Tenon has been
informed), and limited in its effect on practical Perl programs.
Building external modules on MachTen
To add an external module to perl, build in the normal way, which is documented in ExtUtils::MakeMaker, or which can be driven automati-
cally by the CPAN module (see CPAN), which is part of the standard distribution. If you want to install a module which contains XS code (C
or C++ source which compiles to object code for linking with perl), you will have to replace your perl binary with a new version containing
the new statically-linked object module. The build process tells you how to do this.
There is a gotcha, however, which users usually encounter immediately they respond to CPAN's invitation to "install Bundle::CPAN". When
installing a bundle -- a group of modules which together achieve some particular purpose, the installation process for later modules in the
bundle tends to assume that earlier modules have been fully installed and are available for use. This is not true on a statically-linked
system for earlier modules which contain XS code. As a result the installation of the bundle fails. The work-around is not to install the
bundle as a one-shot operation, but instead to see what modules it contains, and install these one-at-a-time by hand in the order given.
AUTHOR
Dominic Dunlop <domo@computer.org>
DATE
Version 1.0.1 2000-03-27
perl v5.8.0 2003-02-18 PERLMACHTEN(1)