Re: Getting perl to work on windows 98 se

2004-11-06 Thread Edward Wijaya
On Sat, 6 Nov 2004 22:15:43 -0800 (PST), mark McWilliams <[EMAIL PROTECTED]> wrote: Where should I look? There is a bin folder created when I tried to load perl but it does not have any subfolders in it. Yes, the are usually stored under C:/Perl/bin I can not find any /usr folder in the instal

Re: how to pass array and varaible

2004-11-06 Thread Ajey Kulkarni
> The varaible number is been appended to the arrya, I want as exactly > passed Hmmm...Whenever you pass array AND a variable with array being first, the subroutine takes the variable and appends to array. Your signature MUST BE sub change { my ($var,@arr) = @_; blah blah } Make sure

Getting perl to work on windows 98 se

2004-11-06 Thread mark McWilliams
I an having trouble installing perl5 or activeperl on my machine and would like any advice anyone can give. What in particular should I look for after it is suppositively installed. Where should I look? There is a bin folder created when I tried to load perl but it does not have any subfolders i

Re: using 'my' problem

2004-11-06 Thread John W. Krahn
Zeus Odin wrote: Apologies, I was asleep at the wheel during my last response. :-) The only answer I have is that this is how the designers of Perl decided that the printing of undefined $, @, and % would work. This is probably due to the fact that the undefined value of a scalar *is* different fro

RE: how to pass array and varaible

2004-11-06 Thread Charles K. Clarkson
Prasanna Kothari <[EMAIL PROTECTED]> wrote: : Pass reference to the array. Prosanna is correct. : #!/usr/bin/perl use strict; use warnings; : my @array=("First","second","third"); : my $menuStr="im"; : @tempArray=change([EMAIL PROTECTED],$menuStr); Should be my @tempAr

Re: using 'my' problem

2004-11-06 Thread JupiterHost.Net
Zeus Odin wrote: Apologies, I was asleep at the wheel during my last response. :-) The only answer I have is that this is how the designers of Perl decided that the printing of undefined $, @, and % would work. This is probably due to the fact that the undefined value of a scalar *is* different fr

Re: porting perl

2004-11-06 Thread Paul Johnson
On Tue, Nov 02, 2004 at 03:18:39PM +, bertold wrote: > hi > > i have to start porting project of Perl interpreter for linux-like > platform. Perl-5.8.5 cross compile on host RH9 > > i have cross compiler but it can't compile amd link in one line, > like gcc. > > how to change perl configura

Re: using 'my' problem

2004-11-06 Thread Zeus Odin
Two small mistakes: "Zeus Odin" <[EMAIL PROTECTED]> wrote in message ... > $ perl -mstrict -MData::Dumper -we "my $; print Dumper $s;" ^^^ $s > $VAR1 = undef; > $ perl -mstrict -MData::Dumper -we "my %h; print Dumpe

Re: using 'my' problem

2004-11-06 Thread Zeus Odin
Apologies, I was asleep at the wheel during my last response. :-) The only answer I have is that this is how the designers of Perl decided that the printing of undefined $, @, and % would work. This is probably due to the fact that the undefined value of a scalar *is* different from the undefined

Re: how to pass array and varaible

2004-11-06 Thread Prasanna Kothari
Hi, Pass reference to the array. #!/usr/bin/perl my @array=("First","second","third"); my $menuStr="im"; @tempArray=change([EMAIL PROTECTED],$menuStr); foreach (@tempArray) { print "\nElement: $_\n"; } sub change { my ($ra_ref,$var)[EMAIL PROTECTED]; print "The