Re: Testing for Missing Packages

2011-12-24 Thread Shlomi Fish
Hi Eric, On Sat, 24 Dec 2011 20:23:17 -0500 Eric James Michael Ritz wrote: > Hello everyone. > > Here is my question: What is the preferred way to test a system for > installed modules? For example, I have a Perl program I would like to > distribute. It depends on a number of modules from CPA

Testing for Missing Packages

2011-12-24 Thread Eric James Michael Ritz
Hello everyone. Here is my question: What is the preferred way to test a system for installed modules? For example, I have a Perl program I would like to distribute. It depends on a number of modules from CPAN and I would like an easy way to test for the existence of those modules. I suppose t

Re: segmentation fault

2011-12-24 Thread Adams Paul
Sent from my LG phone Motaz SAAD wrote: >On Dec 21, 5:37 pm, shlo...@shlomifish.org (Shlomi Fish) wrote: >> On Wed, 21 Dec 2011 09:48:19 -0600 >> >> >> >> >> >> >> >> >> >> Robert Wohlfarth wrote: >> > On Tue, Dec 20, 2011 at 11:25 AM, Motaz SAAD wrote: >> >> > > I am a beginner  in perl and

How to confirm user account

2011-12-24 Thread masayoshi
Hi Please visit http://blogs.perl.org/. If I register my account, I get the following message. To confirm your account, please click on or cut and paste the following URL into a web browser: http://blogs.perl.org/mt/mt-cp.fcgi?__mode=do_confirm&return_to=http%3A%2F%2Fblogs.perl.org%2F&email=r

Re: Regex : Extract data between { } spanning in multplie lines

2011-12-24 Thread David Christensen
On 12/23/2011 01:56 AM, iand wrote: Ex file.txt: A1 {@ a d e \n a b c} A2 {@ 1 {2 3} \n a b c \n d e f} I need to extract these separately : {@ a d e a b c } {@ 1 {2 3} \n a b c \n d e f} http://shop.oreilly.com/product/9780596528126.do HTH, David -- To unsubscribe, e-mail: beginners-unsu

Re: Comparing Perl Hashes

2011-12-24 Thread Shlomi Fish
Hi Pradeep, On Fri, 23 Dec 2011 00:11:22 -0800 (PST) Pradeep Patra wrote: > Hi all, >I have a questions of comparing two hashes. > > %hash1={a=>2,b=>3,c=>4,d=>5} > %hash2={a=>7,b=>8,c=>9,d=>0) > This is the wrong way of initialising hash variables. You're assigning hash references to hash

Re: segmentation fault

2011-12-24 Thread Shlomi Fish
Hi Motaz, On Thu, 22 Dec 2011 10:57:48 -0800 (PST) Motaz SAAD wrote: > Hello, > > Thanks very much, it is really helpful tool. You're welcome. > my script spend 10 min running until I get segmentation fault error, > but when I traced my script and it spend 2 days and still running !!! > I run

Comparing Perl Hashes

2011-12-24 Thread Pradeep Patra
Hi all, I have a questions of comparing two hashes. %hash1={a=>2,b=>3,c=>4,d=>5} %hash2={a=>7,b=>8,c=>9,d=>0) I have to ensure that from %hash2 the value is increased by 5(2->7 and 3->8) for "a","b". I dont want to compare the all the values of hash2(for exp-d=0).I want to push this to a libra

Regex : Extract data between { } spanning in multplie lines

2011-12-24 Thread iand
Switching to multiline mode ~/regex/m doesnt seem to be working. Ex file.txt: A1 {@ a d e \n a b c} A2 {@ 1 {2 3} \n a b c \n d e f} I need to extract these separately : {@ a d e a b c } {@ 1 {2 3} \n a b c \n d e f} perl -lne 'print $1 if '~/^[A-Z0-9]+\s\{.*$/m' file.txt I can extract data by g

Re: segmentation fault

2011-12-24 Thread Motaz SAAD
On Dec 21, 5:37 pm, shlo...@shlomifish.org (Shlomi Fish) wrote: > On Wed, 21 Dec 2011 09:48:19 -0600 > > > > > > > > > > Robert Wohlfarth wrote: > > On Tue, Dec 20, 2011 at 11:25 AM, Motaz SAAD wrote: > > > > I am a beginner  in perl and I have segmentation fault in my code. the > > > code run pe