Re: building variable name

2003-12-20 Thread "[e]agLØrT"
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

Re: building variable name

2003-12-20 Thread $Bill Luebkert
[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

Re: Perl 5.8 problems with print

2003-12-20 Thread $Bill Luebkert
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

building variable name

2003-12-20 Thread du4mi
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

Re: Perl 5.8 problems with print

2003-12-20 Thread Randy W. Sims
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: $|++

RE: Perl 5.8 problems with print

2003-12-20 Thread Tobias Hoellrich
> -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

Perl 5.8 problems with print

2003-12-20 Thread Ken Brown
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

killing process by id

2003-12-20 Thread Jeremy A
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

Re: set up unix code on windows

2003-12-20 Thread Eric Edwards
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