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?
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 ) {
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
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:
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
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]
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
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]
- 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
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
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
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
- 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
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
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
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
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
:
17 matches
Mail list logo