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,
I may be completely stupid but as far as I understand it that's how I have done on list and as I said, sure it works fine with lists but not with arrays...
Thanks!
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,
I am kind of new to Perl and not really used to eval but I don't think I have evere seen 'true' and 'false' used in Perl code...(it is more using 0 and 1, def and undef)Can someone confirm?
What are you trying to do exactly? there is certainly another way to do that...
Why don't you call...
hi again!
I keep looking for information on the web...and I am more and more confused.
I am not even sure it is possible to get my XS sub running in parallel since it is a mix from Perl and C (and Matlab in my case, since the C library comes from Matlab...).
Would anyone has manage to run their...
Thanks for your replies azzazzello!
Though I am confused....:-(
First of all, the fork thing doesn't seem to work with XS sub (I read about it and tested it, and that's true it doesn't).
Second of all this access to library is done in the C driver in the XS sub, so I don't think I can use any...
Hi,
Just another note (sorry about that) to tell you that in fact the error is different each time (that's why I hadn't seen it first) so I am really thinking it is because 2 threads make the driver try to access the same 'function' in the library at the same time...and I send a note to the...
well..I am pretty new to that parallel thing and I thought it was because of that cause if I run it sequentially I have no problem and if I run it in parallel I do and not for the same file (if I try many times)..and since I don't precise in the code how to access the file, I had guessed 2...
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,
Thanks a lot for all your answers....
So I finally got the following complex data structure:
%locations{
$locCode => %loc
}
%loc{
coord => 2 cells array
windSpeed => 15 cells array
windDir => 15 cells array
spectra => reference to a 2d array (24*25)
}
(Before that structure I was...
Hi Mike,
All right, I was afraid to hear (read) that, thanks for your answer though..
I'll try that (hopefully without sleep statement :-))and if I have explicit results, I'll submit a post!
Thanks!
Hi all!
Thanks guys for your replies...I have been wanting to try stevexff implementation choice once my program was in place and I could spend time on it but another issue was raised which avoid me to use my first choice (the files I am processing comes from a model and when there is no data...
Hey guys,
me again!..
I had made a stupid mistake and had put some 'sleep' command to get to see what was going on while debuging and I had forgotten to comment them out so that was what was taking time! ooops...
though, I'll be glad to know more about efficiency and I would still appreciate...
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 ProblemSolver and others...
I don't know you but I sincerely apreciate you already!
I had configured a user DSN, not a system one (I didn't even know it was existing, still a newbie...), so now it works fine!!!!
The link was usefull too! However if it can help someone at some point, the...
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 Rubis,
I am having the exact same problem than you did and however that doesn't solve it. I have my Config package as your Global one. If I try to print the constant directly in the Config package that works fine. Though, in the other module that doesn't ... I tried use/require Config, to...
Thanks so much laserBeam, I am gonna try but I am sure it will work!
That's great and it made me go into the OOP features which is worse it!
Thanks a lot again, that is a great help and I am sure would be useful for many of us!!!
Have a wonderful week!
Eve
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.