hi there.. here is a solution..
my $a6 = "foo";
my $a7 = "bar";
my $a8 = "foobar";
for(6..8){
print eval '$a'.$_;
print "\n";
}
hope this helps..
[EMAIL PROTECTED] wrote:
Hello Perl-Win32-Users,
I have variables:
my $a6 = "foo";
my $a7 = "bar";
my $a8 = "foobar";
now I want do somethin
[EMAIL PROTECTED] wrote:
> Hello Perl-Win32-Users,
>
> I have variables:
>
> my $a6 = "foo";
> my $a7 = "bar";
> my $a8 = "foobar";
>
> now I want do something with eachone of variables:
>
> #trying to print
> for(6..8){
> print "\$a$_\n"; # false
> };
>
> I need to get:
> foo
> bar
> fo
Tobias Hoellrich wrote:
>>-Original Message-
>>Subject: Perl 5.8 problems with print
>>
>>code
>>
>>print "Processing Data ";
Wouldn't hurt to add a newline at the end of the line either.
>>while () {};
>>print "Finished\n";
>>
>>Question
>>why do I not see any output until I send "Finis
Hello Perl-Win32-Users,
I have variables:
my $a6 = "foo";
my $a7 = "bar";
my $a8 = "foobar";
now I want do something with eachone of variables:
#trying to print
for(6..8){
print "\$a$_\n"; # false
};
I need to get:
foo
bar
foobar
Thanks in advance
--
Best regards,
Pavel
On 12/20/2003 8:52 AM, Ken Brown wrote:
code
print "Processing Data ";
while () {};
print "Finished\n";
Question
why do I not see any output until I send "Finished\n" when running the .pl
or the perlapp equiv but if I call with -d (PDK) it works perfectly?
Try turning on output autoflushing:
$|++
> -Original Message-
> Subject: Perl 5.8 problems with print
>
> code
>
> print "Processing Data ";
> while () {};
> print "Finished\n";
>
> Question
> why do I not see any output until I send "Finished\n" when
> running the .pl or the perlapp equiv but if I call with -d
> (PDK) it work
code
print "Processing Data ";
while () {};
print "Finished\n";
Question
why do I not see any output until I send "Finished\n" when running the .pl
or the perlapp equiv but if I call with -d (PDK) it works perfectly?
Ken
___
Perl-Win32-Users mailing li
Hi all,
how do i kill a process when i only have it's pid?
eg.
kill(2,"1072"); does not work.
Thanks in advance to your replies.
Jeremy A.
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysub
From: "$Bill Luebkert:
Try execing the shell instead of dir directly (which is a shell
> builtin) then :
> chdir '/' or die "Can't chdir to root directory: $!";
> exec 'cmd /C dir' or die "Can't exec dir: $!";
Eric wrote:
Thanks! That worked. The book I am using didn't
give any other directions