Active Perl module and ImageMagick

2012-02-20 Thread Skirv
I cant seem to get this module to work at all. I have Windows 7 Pro 64bit, Apache 2.2.14, Active Perl 5.14.2.1402 64 bit. Then I installed... ImageMagick-6.7.5-6-Q16-windows-x64-dll.exe. I checked the box that said "Install PerlMagick for ActiveState Perl c51412.2 build 1402" I can run perl scri

Re: Active Perl module and ImageMagick

2012-02-20 Thread Sisyphus
- Original Message - From: "Skirv" Apache web log reports this error. "Can't locate loadable object for module Image::Magick in @INC (@INC contains: C:/Perl64/site/lib C:/Perl64/lib .)" The "loadable object" is the file auto/Image/Magick/Magick.dll, and it will look for that file u

map usage

2012-02-20 Thread Manfred Lotz
Hi there, I have a hash table where I want to do some action for each value in the hash table. Among other possibilities I could do like this: map { some_action($_) } values %ht; where let us say: sub some_action { ... return; } I like it because it is really short. Questions:

Re: map usage

2012-02-20 Thread Christian Walde
On Mon, 20 Feb 2012 20:08:31 +0100, Manfred Lotz wrote: Hi there, I have a hash table where I want to do some action for each value in the hash table. Among other possibilities I could do like this: map { some_action($_) } values %ht; where let us say: sub some_action { ... retu

Re: map usage

2012-02-20 Thread Manfred Lotz
On Mon, 20 Feb 2012 20:08:31 +0100 Manfred Lotz wrote: > Hi there, > > I have a hash table where I want to do some action for each value in > the hash table. > > > > Among other possibilities I could do like this: >map { some_action($_) } values %ht; > > where let us say: > > sub some_

search and replace with an array

2012-02-20 Thread Chris Stinemetz
I am trying ot find a way to use an array as a reference to remove lines from a file. The array @keyFields has the elements "rcsm and cdmno". My objective is to remove any line from the input that matches the regex /rcsm\d/ and cdmno\d/. I'm not sure if I'm using the best approach. I am getting t

Re: search and replace with an array

2012-02-20 Thread Chris Stinemetz
Looks like I was able to figure it out with the below: But how do I remove all the blank lines? Output: cdmno=1 rdnt_cdmno=1 cdmno=2 rcsm=801 rcsm=801 rcsm=802 #!/usr/bin/perl use warnings; use strict; my $file = "nonKeys.txt"; my $newFile = "cleanKeys.txt"; my @keyFields

RE: search and replace with an array

2012-02-20 Thread Wagner, David --- Sr Programmer Analyst --- CFS
>-Original Message- >From: Chris Stinemetz [mailto:chrisstinem...@gmail.com] >Sent: Monday, February 20, 2012 13:51 >To: beginners@perl.org >Subject: Re: search and replace with an array > >Looks like I was able to figure it out with the below: > >But how do I remove all the blank lines? >

RE: search and replace with an array

2012-02-20 Thread Ken Slater
> -Original Message- > From: Chris Stinemetz [mailto:chrisstinem...@gmail.com] > Sent: Monday, February 20, 2012 3:51 PM > To: beginners@perl.org > Subject: Re: search and replace with an array > > Looks like I was able to figure it out with the below: > > But how do I remove all the blan

Re: map usage

2012-02-20 Thread Manfred Lotz
On Mon, 20 Feb 2012 20:14:13 +0100 "Christian Walde" wrote: > On Mon, 20 Feb 2012 20:08:31 +0100, Manfred Lotz > wrote: > > > Hi there, > > > > I have a hash table where I want to do some action for each value in > > the hash table. > > > > > > > > Among other possibilities I could do like this

Re: map usage

2012-02-20 Thread John W. Krahn
Manfred Lotz wrote: Hi there, Hello, I have a hash table where I want to do some action for each value in the hash table. Among other possibilities I could do like this: map { some_action($_) } values %ht; where let us say: sub some_action { ... return; } I like it because it

Re: search and replace with an array

2012-02-20 Thread John W. Krahn
Chris Stinemetz wrote: I am trying ot find a way to use an array as a reference to remove lines from a file. The array @keyFields has the elements "rcsm and cdmno". My objective is to remove any line from the input that matches the regex /rcsm\d/ and cdmno\d/. AND means matching BOTH in the sam

Re: search and replace with an array

2012-02-20 Thread Chris Stinemetz
Thank you everyone that replied. Your suggestions helped me with finding a solution. Take care, Chris -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Keyboard scan codes with Term::Screen

2012-02-20 Thread Igor Dovgiy
Hi Sean, I don't have Term::Screen installed, but I checked its source - and it looks like whenever some 'non-function' (i.e., not navigational) key is pressed, getch() just gives out the corresponding symbol. Perhaps you'd just check for the spacebar and enter key values (32 and 10, respectively)