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 wrote: > From: Rob Dixon > Subject: Re: how to do a reference to a func in Math::Trig > To: "Perl Beginners" > Cc: "Charles Smith" > Date: Sunday, June

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

2012-06-23 Thread Charles Smith
thank you. cts --- On Sat, 6/23/12, Ron Bergin wrote: > From: Ron Bergin > Subject: Re: how to do a reference to a func in Math::Trig > To: "Charles Smith" > Cc: beginners@perl.org > Date: Saturday, June 23, 2012, 3:28 PM > Charles Smith wrote: > > [snip]

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 sub

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;

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