comp.lang.perl.misc
  Home FAQ Contact Sign in
comp.lang.perl.misc only
 
Advanced search
December 2008
motuwethfrsasuw
1234567 49
891011121314 50
15161718192021 51
22232425262728 52
293031     1
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.perl.misc Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  how to make exe app with Linux perl?         


Author: Pero
Date: Dec 26, 2008 16:18

how to make exe app with Linux perl?
no comments
  Re: Removing base64 from mbox formatted file.         


Author: Tad J McClellan
Date: Dec 26, 2008 14:59

me at wrote:
> delete all lines between the
> base64 and the
> --0__
> Content-transfer-encoding: base64
>
> V5cJPPkIjFDdeEabQbd6WgICTxiiz0f5dBKquXF6k4senwEhYGnKEFJeGrxUZy8dB8gmAXI/sPvH
> ESfCwVt5hTgYiqQqtdRNHQIU1PJ33ZqmzgE90OwLaoJcnMop1WiMmgkPHQRIrwgFuNV90A3doNKT
> mrKIN07AnGcI9BQjhCBN4RfA1qIZnMqorJCogKfGQnxSCDilTVIA0yl5ciTovgLuBDKFUDE9aQcw
> 9SA+rjSNf9/M1gxrj6VwDTS0IUSElMzBfsj0NFXR2kwsV1A5IF1grLgLL/r1R40BZEnuBWgm
> 9SA+QEyb
>
> --0__=07BBFF96DFCC19C68f9e8a93df938690918c07BBFF96DFCC19C6--

perl -n -i -e 'print unless /^Content-transfer-encoding: base64/ .. /
--0__' file.mbox

--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
no comments
  FAQ 3.20 How can I hide the source for my Perl program?         


Author: PerlFAQ Server
Date: Dec 26, 2008 12:03

This is an excerpt from the latest version perlfaq3.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

--------------------------------------------------------------------

3.20: How can I hide the source for my Perl program?

Delete it. :-) Seriously, there are a number of (mostly unsatisfactory)
solutions with varying levels of "security".

First of all, however, you *can't* take away read permission, because
the source code has to be readable in order to be compiled and
interpreted. (That doesn't mean that a CGI script's source is readable
by people on the web, though--only by people with access to the
filesystem.) So you have to leave the permissions at the socially
friendly 0755 level.
Show full article (3.38Kb)
no comments
  FAQ 4.1 Why am I getting long decimals (eg, 19.9499999999999) instead of the numbers I should be getting (eg, 19.95)?         


Author: PerlFAQ Server
Date: Dec 26, 2008 06:03

This is an excerpt from the latest version perlfaq4.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

--------------------------------------------------------------------

4.1: Why am I getting long decimals (eg, 19.9499999999999) instead of the numbers I should be getting (eg, 19.95)?

Internally, your computer represents floating-point numbers in binary.
Digital (as in powers of two) computers cannot store all numbers
exactly. Some real numbers lose precision in the process. This is a
problem with how computers store numbers and affects all computer
languages, not just Perl.

perlnumber shows the gory details of number representations and
conversions.

To limit the number of decimal places in your numbers, you can use the
printf or sprintf function. See the "Floating Point Arithmetic" for more
details.

printf "%%.2f", 10/3;

my $number = sprintf "%%.2f", 10/3;
Show full article (1.74Kb)
no comments
  Re: FAQ 4.2 Why is int() broken?         


Author: Bart Lateur
Date: Dec 26, 2008 04:56

PerlFAQ Server wrote:
>4.2: Why is int() broken?

Huh? Broken, how? "it doesn't work" is not a proper diagnosis, let
alone, a title in the FAQ, with no other information added.

I thought it was going to be about how int(-2.5) returns -3, of which
correctness depends on who you ask.

--
Bart.
2 Comments
  Posting Guidelines for comp.lang.perl.misc ($Revision: 1.8 $)         


Author: tadmc
Date: Dec 26, 2008 00:12

Outline
Before posting to comp.lang.perl.misc
Must
- Check the Perl Frequently Asked Questions (FAQ)
- Check the other standard Perl docs (*.pod)
Really Really Should
- Lurk for a while before posting
- Search a Usenet archive
If You Like
- Check Other Resources
Posting to comp.lang.perl.misc
Is there a better place to ask your question?
- Question should be about Perl, not about the application area
How to participate (post) in the clpmisc community
- Carefully choose the contents of your Subject header
- Use an effective followup style
- Speak Perl rather than English, when possible
- Ask perl to help you
- Do not re-type Perl code
- Provide enough information ...
Show full article (16.63Kb)
no comments
  FAQ 2.11 Perl Books         


Author: PerlFAQ Server
Date: Dec 26, 2008 00:03

This is an excerpt from the latest version perlfaq2.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

--------------------------------------------------------------------

2.11: Perl Books

A number of books on Perl and/or CGI programming are available. A few of
these are good, some are OK, but many aren't worth your money. There is
a list of these books, some with extensive reviews, at
http://books.perl.org/ . If you don't see your book listed here, you can
write to perlfaq-workers@perl.org .

The incontestably definitive reference book on Perl, written by the
creator of Perl, is Programming Perl:

Programming Perl (the "Camel Book"):
by Larry Wall, Tom Christiansen, and Jon Orwant
ISBN 0-596-00027-8 [3rd edition July 2000]
http://www.oreilly.com/catalog/pperl3/
(English, translations to several languages are also available)
Show full article (8.05Kb)
no comments
  Prada shoes (paypal payment)www.king-trade.cn )         


Author: jkfffffffffff
Date: Dec 25, 2008 19:13

Footwear (paypal payment)www.king-trade.cn )
Paul Smith shoes
Jordan shoes
Bape shoes
Chanel shoes (paypal payment)www.king-trade.cn )
D&G shoes
Dior shoes
ED hardy shoes
Evisu shoes
Fendi shoes (paypal payment)www.king-trade.cn )
Gucci shoes `
Hogan shoes (paypal payment)www.king-trade.cn )
Lv shoes
Prada shoes (paypal payment)www.king-trade.cn )
Timberland shoes
Tous shoes
Ugg shoes (paypal payment)www.king-trade.cn )
Ice bream shoes
Sebago shoes (paypal payment)www.king-trade.cn )
Lacoste shoes ...
Show full article (1.77Kb)
no comments
  NIKE AIR JORDAN FORCE FUSION SHOES AJF 5 V JORDANs 5 FUSION NIKE         


Author: fffffffff
Date: Dec 25, 2008 19:11

shoes on
AIR Jordan 1 (paypal payment)www.king-trade.cn
AIR Jordan 2
AIR Jordan 3
AIR Jordan 4
AIR Jordan 5 (paypal payment)www.king-trade.cn
AIR Jordan 6 Rings
AIR Jordan 6
AIR Jordan 7
AIR Jordan 8
AIR Jordan 9 (paypal payment)www.king-trade.cn
AIR Jordan 10
AIR Jordan 11
AIR Jordan 12
AIR Jordan 13 (paypal payment)www.king-trade.cn
AIR Jordan 14
AIR Jordan 15
AIR Jordan 16
AIR Jordan 17
AIR Jordan 18 ...
Show full article (2.56Kb)
no comments
  FAQ 3.14 How can I write a GUI (X, Tk, Gtk, etc.) in Perl?         


Author: PerlFAQ Server
Date: Dec 25, 2008 18:03

This is an excerpt from the latest version perlfaq3.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

--------------------------------------------------------------------

3.14: How can I write a GUI (X, Tk, Gtk, etc.) in Perl?

(contributed by Ben Morrow)

There are a number of modules which let you write GUIs in Perl. Most GUI
toolkits have a perl interface: an incomplete list follows.

Tk This works under Unix and Windows, and the current version doesn't
look half as bad under Windows as it used to. Some of the gui
elements still don't 'feel' quite right, though. The interface is
very natural and 'perlish', making it easy to use in small scripts
that just need a simple gui. It hasn't been updated in a while.
Show full article (3.75Kb)
no comments
1 2 3 4 5 6 7 8 9