Hello All,
I was trying to write this perl program and got stuck with it. Basically,
this program does the following
[1] Get the list of files from the dir that matches the file search
[2] Builds a string and calls another perl program (DBFTP.pl) which then
FTPs the file.
[3] Repeats [2] for each
Fortran can use any indices you want by declaring it as
real foo(-10:10)
and has been able to do that for years.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Lee
Goddard
Sent: Sun December 22 2002 18:08
To: Carl Jolley
Cc: Burak Gürsoy; ActiveState's
When doing something like this, the easiest way to do it is to create an indexing
function negind as in following example
#!perl -w
my @array=(-3,-2,-1,0,1,2,3);
sub negind ($\@) {
my $offset=shift;
my @negarr=@{+shift};
my $indoff=$offset + int (scalar @negarr)/2- 0.5;
One approach to having a true-negative indexed array is by defining
an object-oriented approach. A set of tied-array-based methods might
provide the most natural approach. That should allow a transparent mapping
of negative array indices onto a perl zero based array implementation
while avoiding a
How much detail would you like, Mr Cernansky?
I'm creating variable sized gaussian masks for
image transformations. I'm currently using an
offset to index, but I don't want to do that, as
it's ugly to read. I'm only using Perl for prototyping
a larger image recognition project, but perhaps that as
That was a really useful suggestion: thanks, Carl.
Scoping it seems to be the problem. I'll have a look
for a good CPAN search engine.
Thanks
lee
At 23:35 22/12/2002, Carl Jolley wrote:
I don't know of a module, however you might look at perldoc perlvar
for the info on $[. This is the index of t
At 22:37 22/12/2002, $Bill Luebkert wrote:
Lee Goddard wrote:
Perhaps my original question wasn't clear.
I do not want $#_-10, I want literally $_[-10].
What's the difference which way it is if you access it only by
using negative offsets ?
Not *only* negative offsets.
In other words:
Does
- Original Message -
From: "Lee Goddard" <[EMAIL PROTECTED]>
To: "Sisyphus" <[EMAIL PROTECTED]>; "ActiveState's Perl Win32 Users
list" <[EMAIL PROTECTED]>
Sent: Monday, December 23, 2002 12:19 AM
Subject: Re: Negative-indexed arrays?
> At 12:38 22/12/2002, Sisyphus wrote:
>
> >- Orig
I don't know of a module, however you might look at perldoc perlvar
for the info on $[. This is the index of the first element of an
array, normally, and by default 0. However I don't see anything
that says $[ can't be set to an arbirtary value. It will, however
affect the index of the first elemen
>From the limited detail you're providing, it seems that perhaps a hash
is actually what you want anyway. What are the minimum and maximum
values of your indices? If you have a known min and max, you could
create an array whose indices could be offset by a constant. But that
seems like a big pa
Lee Goddard wrote:
Perhaps my original question wasn't clear.
I do not want $#_-10, I want literally $_[-10].
What's the difference which way it is if you access it only by
using negative offsets ?
In other words:
Does anyone know if there is there a module that
will allow me to have negative
Use IIS or PWS :-).
Brian
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 22, 2002 5:48 AM
Subject: Speed on cgi/pl files
> Hi, is there a way for me to get more speed on cgi/pl files? I´m use a
> Omnihttpd server on windows.
>
> ___
12 matches
Mail list logo