Re: special variable $? usage

2010-04-22 Thread John W. Krahn
Bruno Costacurta wrote: Hello, Hello, I'm looking about how to work with $? returning from a system call. Have you read the documentation for that variable? perldoc perlvar I have the following : system("echo 'DIS CHS(*)' | runmqsc SQFR | grep CHANNEL | sort | uniq -c"); print $?; whi

Re: Need help to resove..... ExtUtils-Makemaker comilationS

2010-04-22 Thread Shlomi Fish
Hi Raheel, On Thursday 22 Apr 2010 17:19:58 Raheel Hassan wrote: > Thanks for your reply, I am using 2.6.27.24-2xossmp version of Mandriva. 2.6.27.24-2 is the kernel version (which is kinda old - I'm using 2.6.33.2). I need the Mandriva version - please do: [shell] shlomi:~$ cat /etc/mandriva-

AW: AW: why does this code fail with stat?

2010-04-22 Thread Thomas Bätzler
Harry Putnam asked: > I pointed to that exact piece of code then asked how to make that > kind of options setting when using this format of find() > > find( >sub { > if(bla){ >blabla > } >}, > @dir > ); That's not possible, since there is neither an option parameter

RE: Using backtick operator output and feeding it into array

2010-04-22 Thread Lonnie Ellis
-Original Message- From: Uri Guttman [mailto:u...@stemsystems.com] Sent: Wednesday, April 21, 2010 4:21 PM To: Lonnie Ellis Cc: beginners@perl.org Subject: Re: Using backtick operator output and feeding it into array > "LE" == Lonnie Ellis writes: LE> I'm pretty new to perl, and c

RE: Using backtick operator output and feeding it into array

2010-04-22 Thread Lonnie Ellis
-Original Message- From: Linux Expert [mailto:linuxexper...@gmail.com] Sent: Wednesday, April 21, 2010 4:28 PM To: beginners@perl.org Subject: Re: Using backtick operator output and feeding it into array (@digOutput) = `dig -x $ipaddie +short`; The line shown above is replacing the enti

Re: Need help to resove..... ExtUtils-Makemaker comilation

2010-04-22 Thread Raheel Hassan
Thanks for your reply, I am using 2.6.27.24-2xossmp version of Mandriva. I need to install some modules ExtUtils, GD, Term::ReadKey, Term::ScreenColor, IO etc. I need these modules because the software that i developed uses these modules and i want to run my software on this version of Mandriva. I

Re: Transparent color

2010-04-22 Thread Shawn H Corey
CHAN, KENNETH 1 [AG/7721] wrote: Hi all, I used colorAllocateAlpha to specify a transparent color. After filling a circle with it, I don't see the background line which is drawn before. The code is pasted below. What did I do wrong here? Thanks. The alphaBlending may be in the wrong mode.

Re: AW: why does this code fail with stat?

2010-04-22 Thread Shlomi Fish
On Thursday 22 Apr 2010 15:03:05 Harry Putnam wrote: > Thomas Bätzler writes: > > Harry Putnam wrote: [SNIP] > I pointed to that exact piece of code then asked how to make that > kind of options setting when using this format of find() > > find( >sub { > if(bla){ >blabla >

Re: Need help to resove..... ExtUtils-Makemaker comilation

2010-04-22 Thread Raheel Hassan
*I have only these files. [r...@localhost /]# find -name 'CORE'* ./usr/lib/perl5/5.10.1/i386-linux-thread-multi/CORE ./usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE [r...@localhost /]# cd /usr/lib/perl5/5.10.1/i386-linux-thread-multi/CORE [r...@localhost CORE]# ls config.h git_version.h lib

special variable $? usage

2010-04-22 Thread Bruno Costacurta
Hello, I'm looking about how to work with $? returning from a system call. I have the following : system("echo 'DIS CHS(*)' | runmqsc SQFR | grep CHANNEL | sort | uniq -c"); print $?; which is returning correct result : 6CHANNEL(ADMIN.MQMON)CHLTYPE(SVRCONN) 19C

Re: AW: why does this code fail with stat?

2010-04-22 Thread Harry Putnam
Thomas Bätzler writes: > Harry Putnam wrote: >> I'm not finding a reference in perldoc File::Find showing how to set >> that flag when using the popular notation like the script involved >> here. > > Probably a case of not seeing the woods because of the trees ;-) > > To quote: > > NAME >

Re: Need help to resove..... ExtUtils-Makemaker comilation

2010-04-22 Thread Shlomi Fish
Hi Raheel! On Thursday 22 Apr 2010 14:21:20 Raheel Hassan wrote: > -- Forwarded message -- > From: Raheel Hassan > Date: Wed, Apr 21, 2010 at 3:55 PM > Subject: ExtUtils-Makemaker comilation problems. > To: beginners@perl.org > > > Hi, > > When i am trying to install ExtUtils i

Re: Need help to resove..... ExtUtils-Makemaker comilation

2010-04-22 Thread Owen
> > When i am trying to install ExtUtils i have these errors are coming. I > am > trying ti install it in Mandriva. Can any one can give be the clue. > Thanks > in advance. > > /usr/lib/perl5/5.10.1/**ExtUtils/typemap Test.xs > Test.xsc && mv > Test.xsc > Test.c > # make[1]: *** No rule to mak

Re: Transparent color

2010-04-22 Thread Shlomi Fish
On Thursday 22 Apr 2010 12:12:34 CHAN, KENNETH 1 [AG/7721] wrote: > Hi all, > > I used colorAllocateAlpha to specify a transparent color. After > filling a circle with it, I don't see the background line which is drawn > before. The code is pasted below. What did I do wrong here? Thanks. I thin

Re: Meta: "Nice" Perl?

2010-04-22 Thread Owen
> Hi, > > I wonder if some of you are in the same situation like me: I am the > only > Perl programmer in the company, at least trying hard to get along :-), > but I have nobody to ask for help. So I spend hours and hours with my > book and the internet when I'm stuck. Luckily, so far I almost alw

Need help to resove..... ExtUtils-Makemaker comilation

2010-04-22 Thread Raheel Hassan
-- Forwarded message -- From: Raheel Hassan Date: Wed, Apr 21, 2010 at 3:55 PM Subject: ExtUtils-Makemaker comilation problems. To: beginners@perl.org Hi, When i am trying to install ExtUtils i have these errors are coming. I am trying ti install it in Mandriva. Can any one can

Re: Meta: "Nice" Perl?

2010-04-22 Thread Shlomi Fish
On Thursday 22 Apr 2010 12:38:39 HACKER Nora wrote: > Hi, > > I wonder if some of you are in the same situation like me: I am the only > Perl programmer in the company, at least trying hard to get along :-), > but I have nobody to ask for help. So I spend hours and hours with my > book and the int

Re: Transparent color

2010-04-22 Thread Owen
> Hi all, > > I used colorAllocateAlpha to specify a transparent color. After > filling a circle with it, I don't see the background line which is > drawn > before. The code is pasted below. What did I do wrong here? Thanks. I rewrote your script to write to the hard drive. The background lin

AW: Meta: "Nice" Perl?

2010-04-22 Thread Thomas Bätzler
HACKER Nora asked: > I wonder if some of you are in the same situation like me: I am the > only Perl programmer in the company, at least trying hard to get > along :-), but I have nobody to ask for help. So I spend hours and > hours with my book and the internet when I'm stuck. Luckily, so far > I

Re: Meta: "Nice" Perl?

2010-04-22 Thread Rob Coops
On Thu, Apr 22, 2010 at 11:38 AM, HACKER Nora wrote: > Hi, > > I wonder if some of you are in the same situation like me: I am the only > Perl programmer in the company, at least trying hard to get along :-), > but I have nobody to ask for help. So I spend hours and hours with my > book and the i

Re: Meta: "Nice" Perl?

2010-04-22 Thread Rene Schickbauer
HACKER Nora wrote: Hi, I wonder if some of you are in the same situation like me: I am the only Perl programmer in the company, at least trying hard to get along :-), but I have nobody to ask for help. So I spend hours and hours with my book and the internet when I'm stuck. Luckily, so far I alm

Meta: "Nice" Perl?

2010-04-22 Thread HACKER Nora
Hi, I wonder if some of you are in the same situation like me: I am the only Perl programmer in the company, at least trying hard to get along :-), but I have nobody to ask for help. So I spend hours and hours with my book and the internet when I'm stuck. Luckily, so far I almost always accomplish

Transparent color

2010-04-22 Thread CHAN, KENNETH 1 [AG/7721]
Hi all, I used colorAllocateAlpha to specify a transparent color. After filling a circle with it, I don't see the background line which is drawn before. The code is pasted below. What did I do wrong here? Thanks. Regards, Kenneth ## Code ### print "Co

Re: Newbie stuck at the first hurdle

2010-04-22 Thread Owen
> Hi, > > This is embarrassing. > > All I want to do is read the content of a simple 10 line .txt file > into an array > and print out the lines, and I just can't seem to get it to work! > /* > $target = "D:\testfile.txt"; > open NEWBIE, "<"$target"; > @arr = ; > foreach $line (@arr) { > print "$l

AW: Newbie stuck at the first hurdle

2010-04-22 Thread Thomas Bätzler
Kryten asked: > This is embarrassing. > > All I want to do is read the content of a simple 10 line .txt file > into an array > and print out the lines, and I just can't seem to get it to work! > /* > $target = "D:\testfile.txt"; > open NEWBIE, "<"$target"; > @arr = ; > foreach $line (@arr) { > pr

Re: Newbie stuck at the first hurdle

2010-04-22 Thread Uri Guttman
> "K" == Kryten writes: K> All I want to do is read the content of a simple 10 line .txt file K> into an array and print out the lines, and I just can't seem to get K> it to work! K> /* K> $target = "D:\testfile.txt"; K> open NEWBIE, "<"$target"; that won't even compile. are yo

Newbie stuck at the first hurdle

2010-04-22 Thread Kryten
Hi, This is embarrassing. All I want to do is read the content of a simple 10 line .txt file into an array and print out the lines, and I just can't seem to get it to work! /* $target = "D:\testfile.txt"; open NEWBIE, "<"$target"; @arr = ; foreach $line (@arr) { print "$line\n"; } close(NEWBIE) *

Re: list assignment

2010-04-22 Thread C.DeRykus
On Apr 20, 2:11 pm, dery...@gmail.com ("C.DeRykus") wrote: > On Apr 20, 9:38 am, jimsgib...@gmail.com (Jim Gibson) wrote: > > ... > > >> If we put $x=(1,2) then we get 2 without the error message. > > > >> Can someone please explain why? > > > > Yes, perl places the last item in the list into the v

RE: Regex to match a word or phrase (no special character)

2010-04-22 Thread Hack, Gabi (ext)
> > Yes all non-alphanumeric and non-whitespace. I have a > database for people to search using a keyword or all > alphanumerical words (including space) are valid, but no > special characters. All the characters I am substituting > below are invalid characters for the search. > If you are h

Re: why does this code fail with stat?

2010-04-22 Thread Shlomi Fish
On Thursday 22 Apr 2010 02:56:44 Shawn H Corey wrote: > Harry Putnam wrote: > > I've run into one of those things where I can't see why my code > > fails. ... and know it has to be something obvious. > > > > Why does the second usage of stat... fail in the find() funciton? > > File::Find changes