07-26-2007
There are tasks that are very hard or impossible even with a powerful shell like ksh. Example: unix keeps time internally in seconds since the epoch. What date and time would 1164876000 correspond to? That would be a complex shell script if you had only a Posix shell and Posix utilities to work with. Perl solution:
perl -e 'print scalar localtime(shift),"\n"' 1164876000
Perl can manipulate text quite adroitly but so can Posix shells. I switch to perl when my requirements exceed the power of a shell. Often I use perl to write one-liners as above to assist the shell. While I doubt that you could write a device driver in perl, perl approaches c in power.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello
to help me with my studying of unix/linux outside of work I was thinking of installing Linux at home aswell as using Windows XP.
Im pretty new to Linux and Unix, could someone tell me the possible benifits or even negatives of running Linux at home as an opperating system as opposed to... (2 Replies)
Discussion started by: Loaded Gun
2 Replies
2. UNIX for Dummies Questions & Answers
What are the advantages of putting users into groups? I understand that in a corporate environment, you should create a group for each department. ie: putting finance employees into a finance group.
But are there any system advantages for doing that? How would it make it easier on the system... (3 Replies)
Discussion started by: kurtmc
3 Replies
3. What is on Your Mind?
Does anyone know what are the Advantages and Disadvanted of being able to modify UNIX? I'm am stuck on this .. Anyone help would be greatly appericated.
:) (1 Reply)
Discussion started by: MTVALDEZ
1 Replies
4. UNIX for Dummies Questions & Answers
hi,
can any body tell me the advantages of having cpio command over tar command (7 Replies)
Discussion started by: prasannak
7 Replies
5. Shell Programming and Scripting
Hi
Anyone can compare and contrast differences, Advantages & Disadvantages between BASH vs PERL
just a need few points on both
Thanks (4 Replies)
Discussion started by: karthikn7974
4 Replies
6. UNIX for Dummies Questions & Answers
What are some advantage's of Unix (3 Replies)
Discussion started by: alvin2132
3 Replies
7. Programming
(I have long gap to communicate with C++ and do not recall if I have used 'try-catch' at all; so, looking for advice...)
I am trying to understand what the benefits of using that C++ error handling style compare to regular C-style 'if-then'?
Still in the try{} block need to do some 'if()' to... (4 Replies)
Discussion started by: alex_5161
4 Replies
8. Solaris
Hi Guys,
Have you tried running Solaris 10 on Failsafe mode? What are their advantages and disadvantages?
What would you recommend for a roll-back plan in case something happens after failsafe mode?
I need to run on failsafe mode to be able to execute fsck.
Appreciate your kind... (1 Reply)
Discussion started by: bocha
1 Replies
LEARN ABOUT MOJAVE
pod::simple::text
Pod::Simple::Text(3pm) Perl Programmers Reference Guide Pod::Simple::Text(3pm)
NAME
Pod::Simple::Text -- format Pod as plaintext
SYNOPSIS
perl -MPod::Simple::Text -e
"exit Pod::Simple::Text->filter(shift)->any_errata_seen"
thingy.pod
DESCRIPTION
This class is a formatter that takes Pod and renders it as wrapped plaintext.
Its wrapping is done by Text::Wrap, so you can change $Text::Wrap::columns as you like.
This is a subclass of Pod::Simple and inherits all its methods.
SEE ALSO
Pod::Simple, Pod::Simple::TextContent, Pod::Text
SUPPORT
Questions or discussion about POD and Pod::Simple should be sent to the pod-people@perl.org mail list. Send an empty email to
pod-people-subscribe@perl.org to subscribe.
This module is managed in an open GitHub repository, <https://github.com/theory/pod-simple/>. Feel free to fork and contribute, or to clone
<git://github.com/theory/pod-simple.git> and send patches!
Patches against Pod::Simple are welcome. Please send bug reports to <bug-pod-simple@rt.cpan.org>.
COPYRIGHT AND DISCLAIMERS
Copyright (c) 2002 Sean M. Burke.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.
AUTHOR
Pod::Simple was created by Sean M. Burke <sburke@cpan.org>. But don't bother him, he's retired.
Pod::Simple is maintained by:
o Allison Randal "allison@perl.org"
o Hans Dieter Pearcey "hdp@cpan.org"
o David E. Wheeler "dwheeler@cpan.org"
perl v5.18.2 2013-11-14 Pod::Simple::Text(3pm)