Sponsored Content
Top Forums UNIX for Advanced & Expert Users I need a recent book about CUPS - can someone recommend me one? Post 303024120 by darktux on Sunday 30th of September 2018 03:54:13 PM
Old 09-30-2018
I will give a try. Looking for a German doc/book Smilie
 

10 More Discussions You Might Find Interesting

1. IP Networking

Please recommend me a Book

I have a SCO OpenServer 5 and I'll like to know about a Very good Book for Unix Networking that can help me with this server or any good book about Unix Networking. Thanks! (2 Replies)
Discussion started by: SuPeRbYtE
2 Replies

2. Programming

Recommend Books

Can anybody recommend a good (& maybe cheap :D ) book for c-prg in HP-UX. I a little rusty & most of expr is in PC world. (1 Reply)
Discussion started by: vslewis
1 Replies

3. UNIX for Dummies Questions & Answers

Can anyone recommend a freeware X-windows emulator?

Are there any freeware or shareware X-windows emulators out there? I only have the need for an emulator on rare occasions and would like to avoid having to purchase something like Exceed or x32. Thanks (1 Reply)
Discussion started by: rhack
1 Replies

4. Solaris

recommend a terminal concentrator

I remember in the past we had those nifty little nortel boxes for remote console terminal concentrators where you can telnet to them and select port and it will be as though you sitting infront of the server console. I can't seem to find any of those now. :confused: I want something that when... (6 Replies)
Discussion started by: sparcguy
6 Replies

5. UNIX and Linux Applications

What Database engine would you recommend?

Thank you for choosing this thread to read. I am about to develop a heavy set financial system. My client wants to build his own in-house. Due to my LAMP/BSD mind set, I know MySQL, but no other database (never got the chance to see others). I do not know if MySQL can handle 2000 to 5000 records... (3 Replies)
Discussion started by: sad_angle
3 Replies

6. Shell Programming and Scripting

Can anyone recommend a book for perl WIN32

Is there a book available that goes into the PERL WIN32 module in depth ? I like the Unix in a nutshell or Perl Black Book by Holzner way of teaching. Teach by example. Anyone ? Thanks Popeye, Olive and sweetpea :p (1 Reply)
Discussion started by: popeye
1 Replies

7. Shell Programming and Scripting

recommend book for unix command/ shell scripting

Hi, i wish to learn unix commands and shell scripting. platform is solaris. but i am focused more on handy unix commands than system administration. which books do you recommend? (1 Reply)
Discussion started by: nurulamin862
1 Replies

8. UNIX for Dummies Questions & Answers

Please recommend a good Unix or Linux book

I looking to broaden my knowledge in Unix/Linux. I have taken some basic classes in the past and tinkered a little with operating system at home.. What i am looking for is if someone could suggest a good book or class or both to help out. Looking at getting a Unix or Linux Certification. I work... (7 Replies)
Discussion started by: harlemi
7 Replies

9. Shell Programming and Scripting

shell books recommend

Now i'm reading <Advanced Bash scripting Guide> and that book lists too many examples and show little explanations.That makes me feel confused.Do any1 has some better book recommend to me about Bash? (4 Replies)
Discussion started by: homeboy
4 Replies

10. Programming

Which C++ book do you recommend?

Hello, May be my post may look naive to many...but it isn't if you were to believe me.After, trying to learn programming in C for at least 5 years , I concluded that K & R is the best book to learn C, alas I took a lot of time to realize this. So, I'm going to start learning how to program... (8 Replies)
Discussion started by: blackwhite
8 Replies
Preferred(3pm)						User Contributed Perl Documentation					    Preferred(3pm)

NAME
Lingua::Preferred - Perl extension to choose a language SYNOPSIS
use Lingua::Preferred qw(which_lang acceptable_lang); my @wanted = qw(en de fr it de_CH); my @available = qw(fr it de); my $which = which_lang(@wanted, @available); print "language $which is the best of those available "; foreach (qw(en_US fr nl de_DE)) { print "language $_ is acceptable " if acceptable_lang(@wanted, $_); } DESCRIPTION
Often human-readable information is available in more than one language. Which should you use? This module provides a way for the user to specify possible languages in order of preference, and then to pick the best language of those available. Different 'dialects' given by the 'territory' part of the language specifier (such as en, en_GB, and en_US) are also supported. The routine "which_lang()" picks the best language from a list of alternatives. The arguments are: o a reference to a list of preferred languages (first is best). Here, a language is a string like 'en' or 'fr_CA'. ('fr_*' can also be given - see below.) 'C' (named for the Unix 'C' locale) matches any language. o a reference to non-empty list of available languages. Here, a language can be like 'en', 'en_CA', or "undef" meaning 'unknown'. The return code is which language to use. This will always be an element of the available languages list. The cleverness of this module (if you can call it that) comes from inferring implicit language preferences based on the explicit list passed in. For example, if you say that en is acceptable, then en_IE and en_DK will presumably be acceptable too (but not as good as just plain en). If you give your language as en_US, then en is almost as good, with the other dialects of en following soon afterwards. If there is a tie between two choices, as when two dialects of the same language are available and neither is explicitly preferred, or when none of the available languages appears in the user's list, then the choice appearing earlier in the available list is preferred. Sometimes, the automatic inferring of related dialects is not what you want, because a language dialect may be very different to the 'main' language, for example Swiss German or some forms of English. For this case, the special form 'XX_*' is available. If you dislike Mexican Spanish (as a completely arbitrary example), then "[ 'es', 'es_*', 'es_MX' ]" would rank this dialect below any other dialect of es (but still acceptable). You don't have to explicitly list every other dialect of Spanish before es_MX. So for example, supposing @avail contains the languages available: o You know English and prefer US English: $which = which_lang([ 'en_US' ], @avail); o You know English and German, German/Germany is preferred: $which = which_lang([ 'en', 'de_DE' ], @avail); o You know English and German, but preferably not Swiss German: $which = which_lang([ 'en', 'de', 'de_*', 'de_CH' ], @avail); Here any dialect of German (eg de_DE, de_AT) is preferable to de_CH. Whereas "which_lang()" picks the best language from a list of alternatives, "acceptable_lang()" answers whether a single language is included (explicitly or implicitly) in the list of wanted languages. It adds the implicit dialects in the same way. AUTHOR
Ed Avis, ed@membled.com SEE ALSO
perl(1). perl v5.8.8 2005-10-17 Preferred(3pm)
All times are GMT -4. The time now is 08:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy