Re: Finance::Bank::Wachovia Message

2005-05-15 Thread Zeus Odin
Although you can do that, it seems like you didn't investigate why the line was present to begin with. I assume that it had some use initially. As Wiggins suggested, I would look at the source of the actual web page that is being submbitted. Occasionally, I automate web page submissions via LWP

how to get data from an array

2005-05-15 Thread Frank
Hi, all, I am a newbie for perl. I am learning perl for my biological data analysis. Now, I have a data look like this: >I do not need-1 .(dots mean data here) . . >I do not need -2 .. . >What I

How to get the numeric index of a element in an array

2005-05-15 Thread Frank
Hi, all If i know the element of array, can I get the numeric index of this element? Thanks Frank -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to get the numeric index of a element in an array

2005-05-15 Thread Ing. Branislav Gerzo
Frank [F], on Sunday, May 15, 2005 at 19:45 (+0800) typed: F> If i know the element of array, can I get the numeric index of this F> element? Exist a way, but it is better using hash. In arrays you have to iterate over every element. -- ...m8s, cu l8r, Brano. [Thank goodness for my twit fil

Re: How to get the numeric index of a element in an array

2005-05-15 Thread Frank
Ing. Branislav Gerzo wrote: Frank [F], on Sunday, May 15, 2005 at 19:45 (+0800) typed: F> If i know the element of array, can I get the numeric index of this F> element? Exist a way, but it is better using hash. In arrays you have to iterate over every element. ~~~Pls tell me the way. possi

Re: How to get the numeric index of a element in an array

2005-05-15 Thread Octavian Rasnita
Hi, Let's say you have the following array: my @array = ( 'blue', 'white', 'red', 'blue', 'green', 'blue', ); And let's say you want to get the index for the 'blue' element. I guess it is obvious that you need to analyse element by element, in order to be able to find if that array contains dup

$variables in a string

2005-05-15 Thread Grant
Hello, my Perl skills are very weak. I have a chunk of code that works great as long as I hard-code everything. When I try to use $variables in the strings, things don't work. Please let me know if you know how to use $variables in these contexts: my $image = Image::Magick->new; # trouble open(

Re: How to get the numeric index of a element in an array

2005-05-15 Thread Frank
Thanks Octavian, I do need analyze element by element. but the problem for me is like this my @array = ( ">blue" "sky" "skirt" "sea" ">white" "paper" "flower" ">red" "face" "flower" ">green" "grand" "tree" ) Say, I need get all elements after ">white" before ">red". Be notice, any new color

Re: $variables in a string

2005-05-15 Thread Paul D. Kraus
Hello, > my $image = Image::Magick->new; > # trouble > open(IMAGE, ' $image->Read(file=>\*IMAGE); > close(IMAGE); > # trouble > $image->Resize(geometry=>'"$height"x"$width"'); this should be written (geometry => "$heightx$width") > # trouble > $image->Write(filename=>'/var/www/localhost/htdocs/"$

Re: How to get the numeric index of a element in an array

2005-05-15 Thread Chris Devers
On Sun, 15 May 2005, Frank wrote: > If i know the element of array, can I get the numeric index of this > element? In general, you'd have to write code to "walk" through the array, then make a note of the index when you get the value you want. Something like this might do what you're asking for

Re: How to get the numeric index of a element in an array

2005-05-15 Thread bright true
hello , you can do something like the following my $counter = -1; foreach (@array){ $counter++; if($_ =~m/$word/){ print "Element ID is $counter";} } On 5/15/05, Frank <[EMAIL PROTECTED]> wrote: > > Ing. Branislav Gerzo wrote: > > >Frank [F], on Sunday, May 15, 2005 at 19:45 (+0800) typed

Re: $variables in a string

2005-05-15 Thread Grant
> Hello, > > > my $image = Image::Magick->new; > > # trouble > > open(IMAGE, ' open(IMAGE, " > You need to use double quotes if you want it to use the variable. > or if you reall wanted single quotes you could have done it like this > > ' > > $image->Read(file=>\*IMAGE); > > close(IMAGE); > > #

Re: how to get data from an array

2005-05-15 Thread John W. Krahn
Frank wrote: Hi, all, Hello, I am a newbie for perl. I am learning perl for my biological data analysis. Now, I have a data look like this: >I do not need-1 .(dots mean data here) . . >I do not need -2 .. ...

Re: Finance::Bank::Wachovia Message

2005-05-15 Thread Jim Garvin
As was guessed earlier, the message started popping up because Wachovia made changes to their web site. I've updated the module and it's on CPAN at version 0.4, it gets rid of the warning plus adds a couple new features. Another change is that I've added some Crypt:: modules that are needed on

Re: Advise me? Seeking GUI toolkit...

2005-05-15 Thread Daniel Kasak
Siegfried Heintze wrote: >>Have a look at Perl-Gtk2: http://gtk2-perl.sourceforge.net/ >> >> >> >Assuming I'm not interested in the Cygwin X Server... > >I looked here and felt confused. Do I need to download the native GIMP >first? I clicked on the "PPM repository" and saw a big list of files

RE: How to get the numeric index of a element in an array

2005-05-15 Thread Charles K. Clarkson
Frank wrote: : Thanks Octavian, I do need analyze element by element. but the : problem for me is like this : : my @array = ( : ">blue" : "sky" : "skirt" : "sea" : ">white" : "paper" : "flower" : ">red" : "face" : "flower" : ">green" : "grand" : "tree" : ) : : Say,

Help with subroutines

2005-05-15 Thread Madhur Kashyap
Have a look at the code snippet from the perl program I have written use strict; use FileHandle; use IPC::Open2; use vars { ... $topCellName ...}; sub setup { .. $topCellName="crm_com"; ... } sub loadNxfDB { print "$_[0]"; my $nxfDBFH=new FileHandle; open ($nxfDBFH,$_[0]) or

Threads related document to refer in perl

2005-05-15 Thread Gayatri
Hello Friends, I want to create threads using perl. So if any documents or links are there to refer please send me. Thanking you in advance -Gayatri ***NOTE*** Deccanet Designs Ltd is now Flextronics Design Ltd, India *