Re: how to do a reference to a func in Math::Trig

2012-06-24 Thread Charles Smith
Thank you. The useful note about CORE, in particular, is new to me. cts --- On Sun, 6/24/12, Rob Dixon rob.di...@gmx.com wrote: From: Rob Dixon rob.di...@gmx.com Subject: Re: how to do a reference to a func in Math::Trig To: Perl Beginners beginners@perl.org Cc: Charles Smith cts.priv

how to do a reference to a func in Math::Trig

2012-06-23 Thread Charles Smith
Hi, I'm experimenting with Math::Trig and would like to be able to pass the function in as a parameter: $f = $opts{f} || sin; ... $f($w); Undefined subroutine main::sin called at (eval 9)[/usr/lib/perl5/5.14.2/perl5db.pl:640] line 2. I have also tried: $f = Math::Trig::sin;

Re: how to do a reference to a func in Math::Trig

2012-06-23 Thread Charles Smith
Hello Shawn, thank you for answering. I'm sorry, I was a bit sloppy with my example and so maybe unclear about my question ... It's not about the precise syntax of getting a reference to a subroutine, but rather a subroutine in a module. For example, this pgm is clear: #!/usr/bin/env perl

Re: how to do a reference to a func in Math::Trig

2012-06-23 Thread Charles Smith
: how to do a reference to a func in Math::Trig To: Charles Smith cts.priv...@yahoo.com Cc: beginners@perl.org Date: Saturday, June 23, 2012, 3:28 PM Charles Smith wrote: [snip] But this pgm fails: #!/usr/bin/env perl use Math::Trig; my $a = \Math::Trig::cos; $a(0); Undefined

great new installation package - how to override /usr/lib/perl5/site_perl/5.8.8?

2009-10-05 Thread Charles Smith
I'm trying to install UR-v0.12 - and encountered a great wizard. But I don't have root access on my machine. I get You are not allowed to write to the directory '/usr/lib/perl5/site_perl/5.8.8' even though I'd entered Your choice: [] PREFIX=~/lib/perl Can somebody please explain to me