Raspberry Pi for Beginners (and developers ;)

2012-06-02 Thread Bill Stephenson
Well, the RPis (Raspberry Pi computers) are shipping now. I haven't got mine yet, but I'm hoping I'll be getting my notice to order soon. At this point there is a lot of activity on the forums at http://www.raspberrypi.org and among the things that have already been accomplished are getting Apa

Using perlbrew to change Perl version for scripts

2012-06-02 Thread sono-io
Is it possible to use a shebang line, like #!/usr/bin/env perl, so that scripts will use the currently selected version of Perl with perlbrew? According to the help, it appears that perlbrew only changes the version for the CLI: COMMAND: SWITCH Usage: perlbrew switch [ ] Swi

Re: Using perlbrew to change Perl version for scripts

2012-06-02 Thread Shawn H Corey
On 12-06-02 12:23 PM, sono...@fannullone.us wrote: Is it possible to use a shebang line, like #!/usr/bin/env perl, so that scripts will use the currently selected version of Perl with perlbrew? According to the help, it appears that perlbrew only changes the version for the CLI: COM

Re: Raspberry Pi for Beginners (and developers ;)

2012-06-02 Thread Omega -1911
Sales pitch? :)

Re: Raspberry Pi for Beginners (and developers ;)

2012-06-02 Thread Bill Stephenson
:) No, there's no sales pitch... The Raspberry Pi is a legit project, nonprofit and meant for educational purposes. But that doesn't mean we can't buy and sell them for commercial purposes. That helps them too. They need volume to keep cost down, and they need community involvement to add val

Re: Using perlbrew to change Perl version for scripts

2012-06-02 Thread Chris Nehren
On Sat, Jun 02, 2012 at 12:57:22 -0400 , Shawn H Corey wrote: > On 12-06-02 12:23 PM, sono...@fannullone.us wrote: > > Is it possible to use a shebang line, like #!/usr/bin/env perl, so > > that scripts will use the currently selected version of Perl with > > perlbrew? According to the

Re: Using perlbrew to change Perl version for scripts

2012-06-02 Thread sono-io
Shawn, > I don't know anything inside perlbrew that will help, but you could do this: Apparently this is a know issue with perlbrew. I just found this page: https://github.com/gugod/App-perlbrew/issues/70 > sudo ln -s /Users/marc/perl5/perlbrew/perls/perl-5.16.0/bin/perl > /usr/local

Re: Using perlbrew to change Perl version for scripts

2012-06-02 Thread Shawn H Corey
On 12-06-02 02:41 PM, Chris Nehren wrote: And the disadvantage of clobbering whatever's in /usr/local/bin/perl, defeating the point of perlbrew in the first place. Don't do that. Yes, the `#!/usr/bin/env perl` shebang should do. I've used it with perlbrew myself. On my machine, perl is at /us

Re: Using perlbrew to change Perl version for scripts

2012-06-02 Thread sono-io
Chris, > Yes, the `#!/usr/bin/env perl` shebang should do. I've used it with perlbrew > myself. How are you getting that to work? When I try it, it uses the version of Perl located at /usr/bin/perl, not the version that's selected with perlbrew. Marc -- To unsubscribe, e-mail: beginne

Re: Using perlbrew to change Perl version for scripts

2012-06-02 Thread Shawn H Corey
On 12-06-02 02:54 PM, sono...@fannullone.us wrote: Chris, Yes, the `#!/usr/bin/env perl` shebang should do. I've used it with perlbrew myself. How are you getting that to work? When I try it, it uses the version of Perl located at /usr/bin/perl, not the version that's selected with

Re: Using perlbrew to change Perl version for scripts

2012-06-02 Thread Bill Stephenson
Maybe I don't understand what you mean, but I'm using perlbrew on my Mac and running CGI scripts with it. Kindest Regards, Bill Stephenson On Jun 2, 2012, at 1:53 PM, Shawn H Corey wrote: > On my machine, perl is at /usr/bin/perl so it doesn't get clobbered. (And `ln > -s ...` won't clobber

Re: Using perlbrew to change Perl version for scripts

2012-06-02 Thread Bill Stephenson
Okay, I get it... Sorry... Kindest Regards, Bill Stephenson On Jun 2, 2012, at 2:01 PM, Shawn H Corey wrote: >>> #!/usr/bin/env perl` -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Using perlbrew to change Perl version for scripts

2012-06-02 Thread Chris Nehren
On Sat, Jun 02, 2012 at 15:01:21 -0400 , Shawn H Corey wrote: > On 12-06-02 02:54 PM, sono...@fannullone.us wrote: > >Chris, > > > >>Yes, the `#!/usr/bin/env perl` shebang should do. I've used it with > >>perlbrew myself. > > > > How are you getting that to work? When I try it, it uses the >

Re: Using perlbrew to change Perl version for scripts

2012-06-02 Thread Bill Stephenson
BBEdit would work too. Just use the "Find and Replace" feature and tell it what directory to use. It will change that line in every file in there. If the OP isn't using a Mac I'm sure there are other tools that do the same thing (I'm also pretty sure they're using a Mac) It's not the answer the

Re: Using perlbrew to change Perl version for scripts

2012-06-02 Thread Shawn H Corey
On 12-06-02 03:11 PM, Chris Nehren wrote: On Sat, Jun 02, 2012 at 15:01:21 -0400 , Shawn H Corey wrote: On 12-06-02 02:54 PM, sono...@fannullone.us wrote: Chris, Yes, the `#!/usr/bin/env perl` shebang should do. I've used it with perlbrew myself. How are you getting that to work?