Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > OS X and perldoc

Reply
Thread Tools

OS X and perldoc

 
 
Justin C
Guest
Posts: n/a
 
      10-02-2006
I've recently bought a Mac, my first, and I'm still finding my way
around it. I'm also still finding my way around Perl; while I don't have
a lot of chance to use it I read a lot here and hope to pick things up.
Quite often questions are posted and the OP is directed to perldoc and
out of interest I follow. That was all well and good on my Linux box;
it's not so good here. There was a recent reference to perldoc perlop,
I've not read it all and I was interested in the answer to the OP's
question. It seems that there is only a partial perldoc install on this
machine, "perldoc -f" works, perldoc -m works, perldoc perldoc and
perldoc perlop don't (I can't think of others to try ... not without
perldoc perldoc anyway!).

Where can I go for information on how to fix this install?

Thank you for any help you can give.
 
Reply With Quote
 
 
 
 
David Squire
Guest
Posts: n/a
 
      10-02-2006
Justin C wrote:
> I've recently bought a Mac, my first, and I'm still finding my way
> around it. I'm also still finding my way around Perl; while I don't have
> a lot of chance to use it I read a lot here and hope to pick things up.
> Quite often questions are posted and the OP is directed to perldoc and
> out of interest I follow. That was all well and good on my Linux box;
> it's not so good here. There was a recent reference to perldoc perlop,
> I've not read it all and I was interested in the answer to the OP's
> question. It seems that there is only a partial perldoc install on this
> machine, "perldoc -f" works, perldoc -m works, perldoc perldoc and
> perldoc perlop don't (I can't think of others to try ... not without
> perldoc perldoc anyway!).
>
> Where can I go for information on how to fix this install?
>
> Thank you for any help you can give.


These two work just fine on my Mac (latest OS X). I didn't do anything
special to make that happen.

I have installed all the optional developer stuff (on my 1st
installation DVD), but I don't recall any Perl-specific stuff being
mentioned there.


DS
 
Reply With Quote
 
 
 
 
David H. Adler
Guest
Posts: n/a
 
      10-03-2006
On 2006-10-02, Jim Gibson <> wrote:

> If for some reason your Perl distribution is incomplete or you want to
> have the absolute latest (Mac OS X currently comes with 5.8.6, whereas
> 5.8.8 and 5.9.4 are out), go to <http::www.cpan.org> and download the
> latest source distribution. If you have installed the Mac OS X
> optional developer tools (XCode) that came with your OS distribution
> (or downloaded the latest from <http://www.apple.com/developer>), then
> you should be able to build and install a complete Perl distribution.
> The developer tools include a version of gcc for the Mac. There is a
> README.macosx file in the Perl distribution with some information
> about Mac-flavored Perl.


There is one LARGE caveat about that on OS X. Do NOT install your perl
over the one that comes with OS X. Apple tends to assume that the perl
the system came with is the one it's using for various things, and
changing that can cause subtle (and not so subtle) problems that can be
very annoying.

Fortunately, IIRC, the default for a perl built from source is to
install it into /usr/local/bin, rather than /usr/bin where Apple puts
theirs. Just make sure you're using /usr/local as your prefix and you
should be fine.

dha

--
David H. Adler - <> - http://www.panix.com/~dha/
"Last year in Oregon, Summer fell on a *tuesday*. That was it. One
day. Big shiny thing in the sky. Some people thought it was a UFO."
- Randal Schwartz in comp.lang.perl.misc
 
Reply With Quote
 
Sherm Pendley
Guest
Posts: n/a
 
      10-03-2006
Justin C <> writes:

> I've recently bought a Mac, my first, and I'm still finding my way
> around it. I'm also still finding my way around Perl; while I don't have
> a lot of chance to use it I read a lot here and hope to pick things up.
> Quite often questions are posted and the OP is directed to perldoc and
> out of interest I follow. That was all well and good on my Linux box;
> it's not so good here. There was a recent reference to perldoc perlop,
> I've not read it all and I was interested in the answer to the OP's
> question. It seems that there is only a partial perldoc install on this
> machine, "perldoc -f" works, perldoc -m works, perldoc perldoc and
> perldoc perlop don't (I can't think of others to try ... not without
> perldoc perldoc anyway!).
>
> Where can I go for information on how to fix this install?


Many of Perl's pods are included in the 'DevDocumentation.pkg' sub-package
of the Xcode install.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
 
Reply With Quote
 
Sherm Pendley
Guest
Posts: n/a
 
      10-03-2006
David Squire <> writes:

> These two work just fine on my Mac (latest OS X). I didn't do anything
> special to make that happen.


Yes you did:

> I have installed all the optional developer stuff


Don't know if I'd call that "special" or not, but that's what gave you the
missing pods.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
 
Reply With Quote
 
Justin C
Guest
Posts: n/a
 
      10-03-2006
In article <>,
Sherm Pendley <> wrote:

> Justin C <> writes:
>
> > I've recently bought a Mac, my first, and I'm still finding my way
> > around it. I'm also still finding my way around Perl; while I don't have
> > a lot of chance to use it I read a lot here and hope to pick things up.
> > Quite often questions are posted and the OP is directed to perldoc and
> > out of interest I follow. That was all well and good on my Linux box;
> > it's not so good here. There was a recent reference to perldoc perlop,
> > I've not read it all and I was interested in the answer to the OP's
> > question. It seems that there is only a partial perldoc install on this
> > machine, "perldoc -f" works, perldoc -m works, perldoc perldoc and
> > perldoc perlop don't (I can't think of others to try ... not without
> > perldoc perldoc anyway!).
> >
> > Where can I go for information on how to fix this install?

>
> Many of Perl's pods are included in the 'DevDocumentation.pkg' sub-package
> of the Xcode install.


Thanks Sherm, and everyone else. I haven't got around to checking out
the Xcode stuff yet; I was assuming that, as I had perl, I'd have the
documentation if the install was OK.

There I go making assumptions again.

And I've just noticed this newsreader isn't appending my .sig. Oh the
trial of a new OS!

#!/usr/bin/perl
use warnings ;
use strict ;

open SIG "<.sig" or die ;
while (<SIG>) {
print $_ . "\n" ;
}
close SIG ;

And what's more, the # is in an awkward place and so is the \, why
didn't I just get another ThinkPad mumble mumble...
 
Reply With Quote
 
Justin C
Guest
Posts: n/a
 
      10-03-2006
In article <>,
Sherm Pendley <> wrote:

> Justin C <> writes:
>
> > I've recently bought a Mac, my first, and I'm still finding my way
> > around it. I'm also still finding my way around Perl; while I don't have
> > a lot of chance to use it I read a lot here and hope to pick things up.
> > Quite often questions are posted and the OP is directed to perldoc and
> > out of interest I follow. That was all well and good on my Linux box;
> > it's not so good here. There was a recent reference to perldoc perlop,
> > I've not read it all and I was interested in the answer to the OP's
> > question. It seems that there is only a partial perldoc install on this
> > machine, "perldoc -f" works, perldoc -m works, perldoc perldoc and
> > perldoc perlop don't (I can't think of others to try ... not without
> > perldoc perldoc anyway!).
> >
> > Where can I go for information on how to fix this install?

>
> Many of Perl's pods are included in the 'DevDocumentation.pkg' sub-package
> of the Xcode install.


Thanks Sherm, and everyone else. I haven't got around to checking out
the Xcode stuff yet; I was assuming that, as I had perl, I'd have the
documentation if the install was OK.

There I go making assumptions again.

And I've just noticed this newsreader isn't appending my .sig. Oh the
trial of a new OS!

#!/usr/bin/perl
use warnings ;
use strict ;

open SIG "<.sig" or die ;
while (<SIG>) {
print $_ . "\n" ;
}
close SIG ;

And what's more, the # is in an awkward place and so is the \, why
didn't I just get another ThinkPad mumble mumble...
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ri and rdoc....like perldoc? Derek Smith Ruby 7 07-09-2010 03:56 PM
Perldoc and the pipe "|" character jkstill Perl Misc 4 08-21-2007 11:54 PM
WIN32 PPM and perldoc problems jovo.miskin@sciatl.com Perl Misc 11 06-30-2006 06:33 AM
Tried Ruby (or, "what Python *really* needs" or "perldoc!") john_sips_tea@yahoo.com Python 27 03-17-2006 10:02 PM
Perl faq and posted to newsgroup but not to perldoc.com Upstart Perl Misc 1 08-11-2003 03:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57