Re: Perl to python converter

2011-12-23 Thread Phil Dobbin
On 23/12/11 14:34, Brian Fraser frase...@gmail.com wrote: On Fri, Dec 23, 2011 at 5:14 AM, a b testa...@gmail.com wrote: Any thoughts? Sure. It's called a college student. You hire one to do the job for you. Now why didn't I think of that? ;-) Cheers, Phil... -- Nothing to see

FW: Perl to python converter

2011-12-23 Thread Phil Dobbin
(PST) To: Phil Dobbin phildob...@gmail.com Subject: Re: Perl to python converter Maybe a better project would be to work toward the development of a standard xsl style sheet able to parse source code or binary of each software language into a tree such that xslt could parse the intermediate tree

FW: can only install cpan modules as sudo

2011-12-23 Thread Phil Dobbin
Date: Fri, 23 Dec 2011 15:56:33 -0800 (PST) To: Phil Dobbin phildob...@gmail.com Subject: Re: can only install cpan modules as sudo in response to the question of writing a perl to python converter i forwarded to the list thisand no one has responded nor has it appeared on the list.. is something

Re: can only install cpan modules as sudo

2011-12-21 Thread Phil Dobbin
On 21/12/11 16:27, Ryan.Barracuda ryan.barrac...@elboardo.com 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

Re: can only install cpan modules as sudo

2011-12-21 Thread Phil Dobbin
On 21/12/11 17:59, Ryan.Barracuda ryan.barrac...@elboardo.com 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

Re: Custom Perl on Debian

2011-12-17 Thread Phil Dobbin
On 17/12/11 22:05, Jeremiah C. Foster jerem...@jeremiahfoster.com wrote: My advice after doing it by hand for so long is to use perlbrew. $ apt-get install perlbrew Then read the documentation and you're off and running. It is a great little tool for installing multiple perls. That's

Custom Perl on Debian

2011-12-16 Thread Phil Dobbin
Hi, all. Has anybody have any experiences of installing a dev version of Perl into /usr/local on Debian (I'm running Squeeze)? My custom version on OS X works just fine after Googling the matter of doing the same on Debian there isn't really any consensus on the subject. Any help appreciated.

Re: Custom Perl on Debian

2011-12-16 Thread Phil Dobbin
On 16/12/11 14:55, Shlomi Fish shlo...@shlomifish.org wrote: On Fri, 16 Dec 2011 14:41:52 + Phil Dobbin phildob...@gmail.com wrote: Has anybody have any experiences of installing a dev version of Perl into /usr/local on Debian (I'm running Squeeze)? My custom version on OS X works

FW: Customizing vi/vim for Perl

2011-11-20 Thread Phil Dobbin
On 20/11/11 19:25, Dermot paik...@gmail.com wrote: Take a look to http://www.vim.org/scripts/script.php?script_id=556 I'd second this endorsement for these perl support script. I never use the menus but I've find the braces and syntax hight-lighting really useful. I installed perl-support

Re: Customizing vi/vim for Perl

2011-11-20 Thread Phil Dobbin
On 20/11/11 20:41, Dermot paik...@googlemail.com wrote: What I'd suggest is that you put a syntax error in you .vimrc (somthing like ':foobarbaz') to see if your vimrc is being used. Your OS may set things up differently. It may use $home/.vimrc or /etc/something. Once you know that which

Re: Customizing vi/vim for Perl

2011-11-20 Thread Phil Dobbin
On 20/11/11 21:02, Phil Dobbin phildob...@gmail.com wrote: I put :set numbers in $HOME/.vimrc it worked fine. I'll give re-installing a go. Re-install resulted in the same non working plugin but, however, inserting these lines in my .vimrc did the trick: `let g:Perl_GlobalTemplateFile

Re: Customizing vi/vim for Perl

2011-11-20 Thread Phil Dobbin
On 20/11/11 22:57, Phil Dobbin phildob...@gmail.com wrote: `let g:Perl_GlobalTemplateFile = $HOME. '/.vim/templates/Templates'` so on for modules, scripts, etc... One final question on this. How can I get vim to recognise the perl in /usr/local/bin rather than the System one. My .bash_profile

CPAN question

2011-11-01 Thread Phil Dobbin
Hi. I have three versions of perl on my machine (Macbook Pro running 10.6.8.): v.5.12 in /opt/local/ for MacPorts, v.5.10 in /usr/bin/ which is the system perl my developer perl v.5.14 in /usr/local/. I use the /usr/local/ version for everything leave the other two to their intended

Re: CPAN question

2011-11-01 Thread Phil Dobbin
On 1/11/11 at 18:45, shawnhco...@gmail.com (Shawn H Corey) wrote: I think perlbrew can be used to switch between installed Perls. If so, switch to the one you want and run `cpan`. This will cause cpan to use the active perl and install the modules in its @INC directories. I use perlbrew to

Re: CPAN question

2011-11-01 Thread Phil Dobbin
On 1/11/11 at 19:42, p...@pjcj.net (Paul Johnson) wrote: On Tue, Nov 01, 2011 at 07:18:06PM +, Phil Dobbin wrote: [snip] What’s your opinion on hard-pathing to CPAN a la `$ /usr/local/bin/perl -MCPAN -e shell’ in order to use the CPAN that’s installed there to install modules in /usr

Re: CPAN question

2011-11-01 Thread Phil Dobbin
On 1/11/11 at 21:09, shlo...@shlomifish.org (Shlomi Fish) wrote: You can do «/usr/local/bin/perl -MCPAN -e 'shell'» or a different CPAN.pm (or CPANPLUS/etc.) command. Hi. Yeah, I ended up setting up an alias in my .bash_profile as so: alias cpan=’sudo /usr/local/bin/perl -MCPAN -e shell’

Re: DBD-mysql-4.020 on OS X 10.6.8: install problem

2011-10-21 Thread Phil Dobbin
On 20/10/11 at 17:35, phildob...@gmail.com (Phil Dobbin) wrote: I’m trying to install DBD-mysql-4.020 on OS X 10.6.8 with a fresh install of perl in /usr/local/ (perl 5.14.2) which is in my $PATH. [snip] [snip

Re: DBD-mysql-4.020 on OS X 10.6.8: install problem

2011-10-21 Thread Phil Dobbin
On 21/10/11 at 10:12, phildob...@gmail.com (Phil Dobbin) wrote: On 20/10/11 at 17:35, phildob...@gmail.com (Phil Dobbin) wrote: I’m trying to install DBD-mysql-4.020 on OS X 10.6.8 with a fresh install of perl in /usr/local/ (perl 5.14.2) which is in my $PATH. [snip] If anybody’s

DBD-mysql-4.020 on OS X 10.6.8: install problem

2011-10-20 Thread Phil Dobbin
Hi. I’m trying to install DBD-mysql-4.020 on OS X 10.6.8 with a fresh install of perl in /usr/local/ (perl 5.14.2) which is in my $PATH. I have a working MySql in /usr/local/ (MySQL 5.1.59) the latest Bundle-DBI. I’ve tried from CPAN compiling from source, scoured the Internet to find

Re: Installing CPAN Params::Validate and DateTime on Mac OS X 10.6.8

2011-10-19 Thread Phil Dobbin
On 19/10/11 at 18:33, j.madrig...@miami.edu (Madrigal, Juan A) wrote: Just wanted to let everyone know I finally fixed the issue. I removed the default perl install in Mac OS X 10.6.8 and compiled a clean install of perl 5.10.1 in its place. [snip] Am I right in thinking you did a fresh

Re: Installing CPAN Params::Validate and DateTime on Mac OS X 10.6.8

2011-10-18 Thread Phil Dobbin
On 18/10/11 at 16:22, j.madrig...@miami.edu (Madrigal, Juan A) wrote: [...] Any advice on installing a fresh install of perl and cpan in a different directory? Flags etc...? http://learnperl.scratchcomputing.com/tutorials/configuration/#installing_more_perls Cheers, Phil. --