RE: Code references

2001-05-22 Thread Rubinow, Larry
Lee Goddard wrote: I have defined sub a1, sub a2, and sub a3. I need to push to an array references to these. Is there a way I can do this programmatically? Sortalike... for (1..3){ push @myarray, \a$_; } ...but correct? Finally, a legitimate case for symbolic references?

RE: Code references

2001-05-22 Thread Lee Goddard
Rubinow, Larry wrote: Finally, a legitimate case for symbolic references? There might be a cleaner syntax, but this should work: sub a1 { print a1\n } sub a2 { print a2\n } sub a3 { print a3\n } for( 1..3 ) { $name = a . $_; push @refs, \$name } # and to execute ... for( 0..2 ) {

RE: Code references

2001-05-22 Thread Rubinow, Larry
Lee Goddard wrote: Rubinow, Larry wrote: Finally, a legitimate case for symbolic references? There might be a cleaner syntax, but this should work: sub a1 { print a1\n } sub a2 { print a2\n } sub a3 { print a3\n } for( 1..3 ) { $name = a . $_; push @refs, \$name } # and

FW: modify file's date?

2001-05-22 Thread Peter Eisengrein
utime seems to be the winner, although on my system (NT4.0) it only works on the modified time, which is apparently a known bug. Thanks Richard! -Original Message- From: Richard Hulse [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 5:41 PM To: [EMAIL PROTECTED] Subject: Re:

RE: redirecting stdout from the dos command line.

2001-05-22 Thread Cornish, Merrill
H:\ test.pl test.out NT doesn't allow command line redirection such as , , or | unless the executable file extension is .BAT, .CMD, .COM, or .EXE. perl test.pl test.out should work because perl is an .EXE file. Merrill ___ Perl-Win32-Users

perlcom vs. perlez

2001-05-22 Thread Rafala, Michael
How is perlcom different from perlez. They are both COM objects, aren't they? Some of the methods look similar. mike rafala rafala m at cadmus com ___ Perl-Win32-Users mailing list [EMAIL PROTECTED]

strict help Please!

2001-05-22 Thread bb
Since I have notice the help that strict can provide, I have tried to use it in all my scripts. I have encountered several things I can NOT figure out how to correct. Listed below are samples: my $jobname; my $record; my @getarray; $getarray{$jobname} = $record; Global symbol %getarray

RE: strict help Please!

2001-05-22 Thread Plunkett, Matt
You declared @getarray as an array, but are trying to use it as a hash. Change my @getarray; to my %getarray; #funny name now. Either surround each of your month names with quotes to show that they are strings, or use qw. -Original Message- From: [EMAIL PROTECTED]

Re: strict help Please!

2001-05-22 Thread Edward G. Orton
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 22, 2001 1:13 PM Subject: strict help Please! Since I have notice the help that strict can provide, I have tried to use it in all my scripts. I have encountered several things I can NOT figure out

Re: Code references

2001-05-22 Thread Carl Jolley
On Tue, 22 May 2001, Lee Goddard wrote: I have defined sub a1, sub a2, and sub a3. I need to push to an array references to these. Is there a way I can do this programmatically? Sortalike... for (1..3){ push @myarray, \a$_; } ...but correct? I strongly caution you to not use

threads, forks and ithreads ??

2001-05-22 Thread mmollenkopf
Greetings all, Quick question, Does active perl 5.6.x have any support for threads, ithreads or fork built into the binary downloaded from Activestate? . I have the new Perl Programming book which has a couple of examples, some work (I think) some dont. Sorry to re-hash this question. The

RE: Code references

2001-05-22 Thread Lee Goddard
On Tue, 22 May 2001, Lee Goddard wrote: I have defined sub a1, sub a2, and sub a3. I need to push to an array references to these. Is there a way I can do this programmatically? Sortalike... for (1..3){ push @myarray, \a$_; } ...but correct? From: Carl Jolley [mailto:[EMAIL

Re: threads, forks and ithreads ??

2001-05-22 Thread Edward G. Orton
- Original Message - From: mmollenkopf [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 22, 2001 4:10 PM Subject: threads, forks and ithreads ?? Greetings all, Quick question, Does active perl 5.6.x have any support for threads, ithreads or fork built into the binary

Re: Problem transferring DB_File from Win32 to Unix

2001-05-22 Thread Jack Marr
My DB_File is version 1.73 whereas the Unix one is 1.76. But the underlying database format isn't reflected in the DB_File version. Use dbinfo.pl (included with the Unix version of db_file.pm I believe) to determine that. I get file version 6 on Windows NT and file version 3 on Unix, and am

RE: Math::TrulyRandom

2001-05-22 Thread Ahlsen-Girard Edward F Contr 46 TS/OGET
Title: RE: Math::TrulyRandom Yeah, depressing isn't it?! Also ironic - that the randomly occurring (quantum) events upon which the computer's functionality rely are being almost totally ignored when it comes to producing random data. ( Though I'm sure this has more to do with

Version of Perl

2001-05-22 Thread bb
I have check out a Perl script on my desktop and it has no syntax errors. I used strict to validate the Perl script. I copy the script to my production machine and now I get a syntax error. I'm assuming that I have different version of Perl on both machines. Is there a easy way to determine

RE: Version of Perl

2001-05-22 Thread Arthur Cohen
Type perl -v from the command line. --Art : -Original Message- : From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] : Sent: Tuesday, May 22, 2001 4:23 PM : To: [EMAIL PROTECTED] : Subject: Version of Perl : : : I have check out a Perl script on my desktop and it has no :