Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: eve25
  • Order by date
  1. eve25

    making part of my program die

    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...
  2. eve25

    Newbie, easier way to grab file into array...sorting descending order

    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!
  3. eve25

    Newbie, easier way to grab file into array...sorting descending order

    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...
  4. eve25

    eval error: Undefined subroutine &main:: called at eval_test.pl line 5

    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...
  5. eve25

    calling XS sub in parallel

    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...
  6. eve25

    calling XS sub in parallel

    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...
  7. eve25

    calling XS sub in parallel

    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...
  8. eve25

    calling XS sub in parallel

    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...
  9. eve25

    calling XS sub in parallel

    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...
  10. eve25

    manipulating huge files

    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...
  11. eve25

    manipulating huge files

    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!
  12. eve25

    manipulating huge files

    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...
  13. eve25

    manipulating huge files

    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...
  14. eve25

    manipulating huge files

    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...
  15. eve25

    DBI/Apache access

    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...
  16. eve25

    DBI/Apache access

    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...
  17. eve25

    Share "constant" among many modules

    Hi again, I found the problem: Config.pm was not a good name since it exists in other packages.... Sorry about that, Have a great nite! Eve
  18. eve25

    Share "constant" among many modules

    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...
  19. eve25

    filehandle for a log file with many packages

    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
  20. eve25

    Please help, my first Program not working :-(

    Hi, try 'eq' instaed of '==', it seems to be considered as a string... hope it helps... Eve

Part and Inventory Search

Back
Top