Hi there,
I have this master script calling a few subroutines that are organized in different modules. For now I am using 'use' to get those subroutines loaded in my master script.
something like (really simplified):
####
#master.pl
####
use Mod1 qw(sub1);
use Mod2 qw(sub2);
...
foreach my...
Hi folks,
I am a Python newbie and using it for scientific computation...due to its supposed efficiency I am trying to use Numarray (after trying scipy and seeing how week was the documantation for that)
I didn't manage to find a function grabbing a matrix from a file into a 2d array..except...
Hi guys,
I have a program using an XS package (to use a C librarie with a driver), this package has 3 subroutines to:
- load the library
- run the C code on the specified file
- close the library
I am calling this package from another perl script and I need to load and close the library once...
Hi guys!
I have to make an application for which the running time is really important, and to summarize I have 2 text files (one really huge: 80MB and the other of 1.6 MB). Those 2 files contain information for more than 1500 locations, and I have to produce 1 file per location with both of...
Hi Guys,
I'm hitting a problem I can't solve...
I got CGI scripts working fine in Perl with Windows as long as I don't have any DB access.
Then I am using the DBI and DBD:OCVB (smth like that, a general one supposed to work with any databases) modules, I have configured the ODBC source...
Hi guys,
I would need a log file for my program but this one is composed with 5 different packages...and 1 program making the link to all the packages.
A filehandle is proper to a package and I know how to pass it from one prog/package to another one with aliases and using local... I can to that...
Hi guys,
Here is my problem : I need a global variable and to use strict at the same time (the program is quite big and I need to debug easily..)
If I get everything:
local: I can get global variables but not use strict
my: declaration in one block /can use strict
our: declaration in one block...
Hi folks,
I have to process about 10 files and to make the data from these files (let's say input file) available in another format (let's say output file). So basically I take the data, manipulate it and print it in another file. Each input file contains about 60 records, each one containing...
Hi folks,
I there anyway in a file to go to the previous line easily? I made a fct looking for one line ans returning all the text before that line, but after I want to start again from this line and if a call $line=<FILE> it gives me the following one.. I know that seek is a possibility but it...
Hi folks,
I have to dowload files like the one with a .dat extension and having "qu" in their name (just an example)
I would have liked to write in my code someting like $ftp->get(*qu*.dat); I think I barely tried everything between *,.,/
I finally write a code using regular...
Hi all,
I am currently translating code from Matlab to Perl and both language are new for me. I have to copy, move, download files, send mails for a great part of the program. The code in matlab uses UNIX command to do that and for the moment I have done it this way too, like
my $copy=`cp...
Hi folks!
I am just starting using Perl and I am wondering how I could get the list of the processus running at one time (present) on the computer. (to detect the ftp one).
also, is it possible to have a bash shell script in a perl script (which could be another way to obtain this list)?
Thanks...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.