Math::TrulyRandom
Has anyone got Math::TrulyRandom to compile with Visual Studio? TIA lee ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
Re: Math::TrulyRandom
- Original Message - From: Lee Goddard [EMAIL PROTECTED] To: Perl_Users [EMAIL PROTECTED] Sent: Monday, May 21, 2001 8:15 PM Subject: Math::TrulyRandom Has anyone got Math::TrulyRandom to compile with Visual Studio? TIA lee I tried putting a couple of versions of 'time.h' into 'vc98/include/sys' in the hopes that it might work. The mere mention of 'SIGALRM' in 'truerand.c' was enough to deter me from trying too hard. Cheers, Rob ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
rand / srand / RE: Math::TrulyRandom
Yeah, depressing isn't it?! Did you find a way of generating truly random numbers? Mine come out the same every time, which is useless tried the perldoc suggestion (-f srand) but makes no difference whatsoever Any ideas, anyone? tia lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sisyphus Sent: 21 May 2001 11:52 To: Perl_Users Subject: Re: Math::TrulyRandom - Original Message - From: Lee Goddard [EMAIL PROTECTED] To: Perl_Users [EMAIL PROTECTED] Sent: Monday, May 21, 2001 8:15 PM Subject: Math::TrulyRandom Has anyone got Math::TrulyRandom to compile with Visual Studio? TIA lee I tried putting a couple of versions of 'time.h' into 'vc98/include/sys' in the hopes that it might work. The mere mention of 'SIGALRM' in 'truerand.c' was enough to deter me from trying too hard. Cheers, Rob ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
RE: parsing blackice csv file
: : i would like to be able to read in a csv file and output it : into html. does anyone have a template type of a script that : could this that would be willing to share it? : It doesn't look like anyone else answered this question, so... CSV should just be a comma-separated-values file, which is pretty much what it sounds like. I believe there is a DBD::CSV (or similar) module that gives you a database API (i.e. DBI) to files in this format, or if the data is relatively simple you may prefer to write your own routine to split each line on a comma character. HTH, --Art ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
PERL EXIT CODE
Can anyone point me to a Perl exit code table or reference? Running on a w2k machine. I have some EDI translation software that allows me to run commands and scripts. I have attempted to execute a 'hello world' script to write a file outside the folder which contains the script. After trying the suggestions given by folks on this list, I still can't get it to work. I now suspect some sort of permissions problem. However, when the Perl script fails, the EDI software will report back an exit code from Perl. Below is a sample of the message - note the exit code at the end: 05/17/2001 15:57:36|Perl Command|OutputManager|Run of \\D06MS1\Perl\bin\Perl.exe hello.pl finished with exit code 0x2 -- Mike Rudolph - EDI Coordinator Green Bay Packaging Inc. Phone: 920.433.5426 Fax: 920.438.5426 Email: [EMAIL PROTECTED] ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
RE: parsing blackice csv file
This is really easy to do. Assuming you want to put in an HTML table, or something, here's an example: open(FILE,file.csv) || die Can't open it. $!\n; open(OUT, file.html) || die Can't open output file. $!\n; print OUT HTMLHEAD/HEADBODYTABLE\n; foreach my $line(FILE) { chomp($line); print OUT TR\n; my @line = split(/\,/,$line); foreach my $item(@line) { print OUT TD$item/TD\n; } print OUT /TR\n; } close(FILE); print OUT /TABLE/BODY/HTML\n; close(OUT); #/PETE -Original Message- From: Arthur Cohen [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 9:24 AM To: [EMAIL PROTECTED] Subject: RE: parsing blackice csv file : : i would like to be able to read in a csv file and output it : into html. does anyone have a template type of a script that : could this that would be willing to share it? : It doesn't look like anyone else answered this question, so... CSV should just be a comma-separated-values file, which is pretty much what it sounds like. I believe there is a DBD::CSV (or similar) module that gives you a database API (i.e. DBI) to files in this format, or if the data is relatively simple you may prefer to write your own routine to split each line on a comma character. HTH, --Art ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
RE: parsing blackice csv file
: my @line = split(/\,/,$line); Not necessarily that simple. There could be fields with commas and/or newlines embedded in them, contained within quotation marks. If the OP's data is that complex he may want to consider using the module to parse his data. If it's just simple data with nothing funny going on, then your approach should work. --Art ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users