Re: can only install cpan modules as sudo

2011-12-21 Thread Phil Dobbin
On 21/12/11 17:59, "Ryan.Barracuda" wrote: > Thanks! Would you recommend I uninstall ActiveState and install Perlbrew > first? Depends whereabouts it is on your machine. If ActiveState resides in ~/ then yes, I would. If not, it's entirely optional & you can just go ahead & install perlbrew as p

Re: can only install cpan modules as sudo

2011-12-21 Thread Ryan.Barracuda
Thanks! Would you recommend I uninstall ActiveState and install Perlbrew first? Ryan On 12/21/11 12:52 PM, "Phil Dobbin" wrote: >On 21/12/11 16:27, "Ryan.Barracuda" wrote: > >> I can only install cpan modules as sudo. I installed ActiveState Perl >> v.5.14.2 and cpanm without a problem. >>

Re: can only install cpan modules as sudo

2011-12-21 Thread Phil Dobbin
On 21/12/11 16:27, "Ryan.Barracuda" wrote: > I can only install cpan modules as sudo. I installed ActiveState Perl > v.5.14.2 and cpanm without a problem. > > $ cpanm Net::SMTP > -bash: /usr/local/bin/cpanm: /usr/bin/perl: bad interpreter: No such file or > directory > > However, with sudo > >

Re: segmentation fault

2011-12-21 Thread Robert Wohlfarth
On Wed, Dec 21, 2011 at 10:37 AM, 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 perfectly for the until

Re: can only install cpan modules as sudo

2011-12-21 Thread Ryan.Barracuda
Another example: ryan-munsons-macbook-pro:bin barracuda$ cpanm MIME::Entity -bash: /usr/local/bin/cpanm: /usr/bin/perl: bad interpreter: No such file or directory This was not installed. When using sudo, however: ryan-munsons-macbook-pro:bin barracuda$ cpanm MIME::Entity -bash: /usr/local/bin/cp

Re: segmentation fault

2011-12-21 Thread Shlomi Fish
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 perfectly for the until the third iteration and it produce > > segmentation fault in the in

can only install cpan modules as sudo

2011-12-21 Thread Ryan.Barracuda
Hi all, I can only install cpan modules as sudo. I installed ActiveState Perl v.5.14.2 and cpanm without a problem. $ cpanm Net::SMTP -bash: /usr/local/bin/cpanm: /usr/bin/perl: bad interpreter: No such file or directory However, with sudo $ sudo cpanm Net::SMTP Net::SMTP is up to date. (2.31)

RE: parsing data

2011-12-21 Thread Ken Slater
> -Original Message- > From: Chris Stinemetz [mailto:chrisstinem...@gmail.com] > Sent: Wednesday, December 21, 2011 11:18 AM > To: Binish A.R > Cc: John W. Krahn; Perl Beginners > Subject: Re: parsing data > > I'm trying to implement the advice that Binish, and John gave. > > I am getting

Re: parsing data

2011-12-21 Thread Chris Stinemetz
I'm trying to implement the advice that Binish, and John gave. I am getting the following error: Can't use an undefined value as a HASH reference at ./format.pl line 16, line 2. Any help is greatly appreciated, Chris #!/usr/bin/perl use warnings; use strict; my $csno; while( ) { chomp;

Re: segmentation fault

2011-12-21 Thread Robert Wohlfarth
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 perfectly for the until the third iteration and it produce > segmentation fault in the inner while loop in the 3rd iteration of > the outer while loop. > Would

segmentation fault

2011-12-21 Thread Motaz SAAD
Hello, I am a beginner in perl and I have segmentation fault in my code. the code run perfectly for the until the third iteration and it produce segmentation fault in the inner while loop in the 3rd iteration of the outer while loop. Would you please help me with hints. Your help will be appreci