Racing condition in multi thread handling --> A terminated thread is going to be killed, crashing script

2013-10-04 Thread Alexander Karner
is of course normal as the address that is going to be reached by the kill does not exist anymore in this moment). Is there a way to work around this specific situation? Mit freundlichen Grüßen / Kind regards Alexander Karner smime.p7s Description: S/MIME Cryptographic Signature

Re: Compilation 5.18.0 on RHEL 6.4 fails to use threads (?)

2013-09-19 Thread Alexander Karner
atement is a lie as RHEL does not contain a threaded Perl. But I'll try perlbrew Mit freundlichen Grüßen / Kind regards Alexander Karner From: Brian Fraser To: Alexander Karner/Germany/IBM@IBMDE, Cc: Perl Beginners Date: 19.09.2013 14:29 Subject:Re: Compilation

Re: Compilation 5.18.0 on RHEL 6.4 fails to use threads (?)

2013-09-19 Thread Alexander Karner
27; => '', 'use5005threads' => undef, 'useithreads' => undef, 'usethreads' => undef, No wonder that the Padre installation fails as it checks for "$Config{usethreads}" being defined - but

Compilation 5.18.0 on RHEL 6.4 fails to use threads (?)

2013-09-18 Thread Alexander Karner
ngdouble=undef usemymalloc=n, bincompat5005=undef --> useithreads is still undef And if I try to install Padre I receive a message that it requires a threaded version of Perl. --> Is this normal or do I miss something special at this point? Mit freundlichen Grüßen / Kind regards Alexander Karner smime.p7s Description: S/MIME Cryptographic Signature

Re: Can't install Inline::Java

2010-04-25 Thread Alexander Koenig
On 04/25/2010 11:19 AM, C.DeRykus wrote: > > You might want to check the Inline mailing list mentioned on CPAN. Good idea. I'll try that. Thanks. Alex -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Can't install Inline::Java

2010-04-23 Thread Alexander Koenig
Hi all, I just tried to install Inline::Java from CPAN and it didn't work. The install process just stopped after some time. When I tried it the second time it stopped again at the same time. There was no error message or anything, it just stopped. Here is the output from CPAN when I ran it the

Re: list guidelines?

2010-02-03 Thread Alexander Koenig
You wrote on 02/02/2010 05:29 PM: i think we need to come up with a set of guidelines for this list. this would be autoposted a few times a week and possibly to every new address seen. While I think this is a good idea in principle, in my opinion posting this "a few times a week" to the list b

Re: basename question from "learning perl"

2010-01-18 Thread Alexander Koenig
Hi Jim, Jim Green wrote on 01/17/2010 05:25 PM: > my $name = "/usr/local/bin/perl"; > (my $basename = $name) =~ s#.*/##; # Oops! > > after substitution $basename is supposed to be > perl > > but why it is not /local/bin/perl? will .*/ matches longest possible string? Yes it will match the longe

eval and next

2009-10-06 Thread Alexander Koenig
Hi all, I have a Perl program where I use eval to catch errors. As they are Java errors (via Inline::Java) I want my program to continue and just log the errors somewhere. My problem with this is, that I use the eval within a loop and I also use next in this loop to ignore some special cases. But

Re: some errors in databasescript

2009-09-17 Thread Alexander Koenig
Hi Ruprecht, You wrote on 09/17/2009 10:31 AM: > > syntax error at ./statistik.pl line 73, near "} or" > syntax error at ./statistik.pl line 82, near ") {" > syntax error at ./statistik.pl line 86, near "} or" > Missing right curly or square bracket at ./statistik.pl line 100, at end > of line >

Sorting a hash to user needs

2009-07-08 Thread Alexander Müller
Hi, I need an order for hash by user preferences. Because the criterion to order the hash entries a not numerical and not should sorted alphabetical, I tried following   3 %hashToSort = (   4 "a" => "one",   5 "b" => "two",   6 "c" => "three",   7 ); @keys = sort { qw(a, b, c) } (

Re: Time stamp in file name.

2009-07-08 Thread Alexander Koenig
Hi again, You wrote on 07/08/2009 10:14 AM: > But still a bit curios about this > if I do > $middle=`date +%F`; > I get result ( the new line prob), > > New File name : log_2009-07-07 > .gz > > It there any way to do it using this (Using date command). That's because the date output includes a

Re: Time stamp in file name.

2009-07-08 Thread Alexander Koenig
I wrote on 07/08/2009 09:50 AM: >> #!/usr/bin/perl -w >> # Prog for demostrating file name concatenations. >> $prefix="log"; >> $suffix=".gz"; >> >> ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time); >> # Time >> $middle=sprintf "%4d-%02d-%02d \n",$year+1900,$mon+1,$mday; >> pr

Re: Time stamp in file name.

2009-07-08 Thread Alexander Koenig
Hi, You wrote on 07/08/2009 09:35 AM: > #!/usr/bin/perl -w > # Prog for demostrating file name concatenations. > $prefix="log"; > $suffix=".gz"; > > ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time); > # Time > $middle=sprintf "%4d-%02d-%02d \n",$year+1900,$mon+1,$mday; > pri

Re: Pattern match question

2009-05-27 Thread Alexander Koenig
You wrote on 05/27/2009 10:50 AM: > I want to match one ... pair. > > my code : > > my $pattern = "()"; ... > but I got the whole matches instead of one ... pair each loop. Do need to de-greedify it. my $pattern = "()"; This should do the trick. hth Alex -- To unsubscribe, e-mail: beginner

Re: Simple regex question

2009-05-19 Thread Alexander Koenig
Chas. Owens wrote on 05/19/2009 04:02 PM: >> ($a,$n,$x,$y)) = $item =~ /(.{5})\.(\d\d?)[-+](\d{1,4})\.(\d{1,4})/; > snip > > As of Perl 5.8 \d no longer matches [0-9]. It now matches any UNICODE > character that has the digit property. This includes characters such > as "\x{1815}" (MONGOLIAN DI

Re: Simple regex question

2009-05-19 Thread Alexander Koenig
You wrote on 05/19/2009 03:18 PM: > Simple question for the regEXperts out there... > > I have a string that is always in the format: a.nn+x.y > > a is always 5 chars > n can be 1 or 2 digits > x can be +/- (with sign), 1-4 digits > y is always positive (no sign), 1-4 digits The best I ca

Re: Testing a scalier for two possible values at once

2009-05-13 Thread Alexander Koenig
You wrote on 05/13/2009 02:17 AM: > I need to test a scalier to see if its value is not two possibilities, > because this test is being done inside a while loop I can not use an elsif > statement without things getting ugly. I have tried it like this if > ($scalier nq 'A') || ($scalier nq 'B')

Re: Can't Retrieve Data From foreach block

2009-03-30 Thread Alexander Koenig
Hi, You wrote on 03/30/2009 04:07 PM: > How can I retrieve data loaded into an array within a foreach block? > The array is defined outside the foreach block and is not the indexing > array of the foreach loop. I ran your code and it works fine here. I did however have the same problem as you at

Re: free perl editor wanted

2009-02-18 Thread Alexander Koenig
David Shere wrote on 02/18/2009 02:26 PM: > If you want an editor that will also allow you to put in breakpoints, > and step through code line by line while examining variables, you could > use Komodo. I haven't used it for a while but it was a very nice tool > when I was first learning. ... > It

Re: free perl editor wanted

2009-02-18 Thread Alexander Koenig
itshardtogetone wrote on 02/09/2009 12:22 AM: > Can someone introduce me a free Perl editor that also can easily produce html > codes. > Thanks If you are on Windows, try Notepad++[1]. It knows a lot of formats (including Perl and HTML), is easy to use (if you don't want to learn emacs or vim) a

Re: Perl MOdule Tutorial

2009-02-05 Thread Alexander Koenig
You wrote on 02/03/2009 10:21 AM: > Hi, > > Can you please point me to some good perl module tutorial for a beginner > level? Have a look at the Perlmonks site: http://perlmonks.org/?node=Tutorials#Modules-How-to-Create-Install-and-Use hth Alex -- To unsubscribe, e-mail: beginners-unsubscr...@

question about web site interaction script

2006-09-29 Thread Alexander Sirotkin
What is the best module to use when writing web site interaction scripts ? The script would have to login sending username and password and after that follow a few links and do some more "http posts". Any suggestions ? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

pack function

2006-08-24 Thread Alexander Müller
its values to an actual string. But what happens if the passed string contains non-hex values like space or even "G"? Thanks, Alexander -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Getting perl to work on windows 98 se

2004-11-07 Thread Alexander
or use #!perl , you'll have to see what works for you. I hope that helped Alexander Do You Yahoo!? Αποκτήστε τη δωρεάν @yahoo.gr διεύθυνση σας στο http://www.otenet.gr -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Perl IDE

2004-03-05 Thread Alexander Douglas
Hello I am new to perl and hence needs some help.. 1) Is there a good IDE to build perl forms for web. 2) If i have to connect perl to firebird database just the DBI module from perl is enough or do i need any more drivers, The OS is solaris and linux with wiindows clients for developement. Plea

help to newbie

2003-02-27 Thread Alexander
regexp for 3 digits optional "," and if there is a comma 2 digits I've tried this but it simply didn't work "\\d{1,3}[.,]?\\d{0,2}" -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

If - Else What?

2002-11-26 Thread Michael J Alexander
Mike Here Can someone tell me why this simple bit of code doesn't work? The "If" statement prints even when it's false. $x = 20; $y = 15.5; $z = .05; $a = $x+$y; print "a equals $a.\n"; if ($a = 20) {print "a is equal to 20.\n";} else {print "a is not equal to 20.\n";} --- Outgoing ma

Newbie Intro

2002-11-08 Thread Michael J Alexander
Mike here. Just wanted to introduce myself. I'm teaching myself Perl, and discounting the Pascal class I took in college 13 years ago, I'm a newbie at this language stuff . I am working on CCNA cert. Windows XP is my main OS, but I toy around with any Linux Distro I can get my hands on. I chos

Ignore. Just Testing

2002-11-08 Thread Michael J Alexander
Tried to send something yesterday but it didn't go through. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 10/24/2002 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

hiding file data

2002-01-08 Thread Stuart Alexander
Hi All, I have a few perl files that I need to send out to a client. However, we do not want them seeing what are in the files for obvious reason. Is there any way that I can hide the info in the files, or should I creat an executable. Thanks in advance for any help. Totalise - the Users ISP

renaming files - fatuous newbie query

2001-12-07 Thread McCarney, James Alexander
Ok team, here's the deal. I am *not* a programmer or a sysadmin, so be gentle. ;) Here is the code--checked it out in perldoc -q. Wow, it works... My platform: Windows 2000 #! perl -w use strict; use File::Copy; move("file1.txt", "file3.txt"); That's great, but I have umpteen scores of files

Re: what is wrong with this simple format?

2001-09-14 Thread Alexander Bjelke
hmmm, I have testet the script on a machine with perl 5.6 and there it worked. Is the format definitions different in perl 4? Alexander -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

what is wrong with this simple format?

2001-09-14 Thread Alexander Bjelke
at line 39, next char ^? Execution of ./areport.pl aborted due to compilation errors. Line 39 is where the dot is (which should terminate the format if im not wrong). This is with Perl version 4. Alexander -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

getting the output from a system call into variable

2001-09-10 Thread Alexander Bjelke
I want to get the output from the following command into an variable: system("date +%Y%m%d-%H%M%S"); I have tried: $output = system("date +%Y%m%d-%H%M%S"); But that does not work (only get 0 in that variable). Please help! Alexander -- To unsubscribe, e-mail: [

having two versions of perl possible?

2001-09-04 Thread Alexander Bjelke
rfere with the allready existing Perl version, because then I might be in big trouble! ;-) Alexander -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]