comp.lang.perl.misc
  Home FAQ Contact Sign in
Your Ad Here
comp.lang.perl.misc only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
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
  Current Time with 5 digits of milliseconds         


Author: ambarish.mitra
Date: May 12, 2008 00:39

I need to get the current date-time with milliseconds upto 5 places of
precision.

That is, 20080512T12094565266 => YYYY MM DD T HH mm SS ms-5 digits

Here, 65266 is the milli-second with 5 places of precision.

I tried with the module DateTime, but that does not give the
milliseconds.

use DateTime;
my $dt = DateTime->now( time_zone => 'floating' );

Any idea how this can be achieved in Perl?

Thanks.
no comments
  FAQ 4.14 How can I compare two dates and find the difference?         


Author: PerlFAQ Server
Date: May 12, 2008 00: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.14: How can I compare two dates and find the difference?

(contributed by brian d foy)

You could just store all your dates as a number and then subtract. Life
isn't always that simple though. If you want to work with formatted
dates, the "Date::Manip", "Date::Calc", or "DateTime" modules can help
you.

--------------------------------------------------------------------
Show full article (1.30Kb)
1 Comment
  A site for all ypur programming language needs         


Author: surana
Date: May 11, 2008 18:11

A complete tutorial for all your programming language needs such as
Java, .Net and many more. A one shop site for all your programming
language needs

http://www.computenetwork.blogspot.com
no comments
  FAQ 3.22 How can I get "#!perl" to work on [MS-DOS,NT,...]?         


Author: PerlFAQ Server
Date: May 11, 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.22: How can I get "#!perl" to work on [MS-DOS,NT,...]?

For OS/2 just use

extproc perl -S -your_switches

as the first line in "*.cmd" file ("-S" due to a bug in cmd.exe's
"extproc" handling). For DOS one should first invent a corresponding
batch file and codify it in "ALTERNATE_SHEBANG" (see the dosish.h file
in the source distribution for more information).
Show full article (2.54Kb)
no comments
  FAQ 3.27 Where can I learn about linking C with Perl?         


Author: PerlFAQ Server
Date: May 11, 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.27: Where can I learn about linking C with Perl?

If you want to call C from Perl, start with perlxstut, moving on to
perlxs, xsubpp, and perlguts. If you want to call Perl from C, then read
perlembed, perlcall, and perlguts. Don't forget that you can learn a lot
from looking at how the authors of existing extension modules wrote
their code and solved their problems.

You might not need all the power of XS. The Inline::C module lets you
put C code directly in your Perl source. It handles all the magic to
make it work. You still have to learn at least some of the perl API but
you won't have to deal with the complexity of the XS support files.

--------------------------------------------------------------------
Show full article (1.66Kb)
no comments
  citrate de sildenafil bon marche generique pharmacie us usa acheter cialis commander cialis canada soft Achat cialis Pro 1         


Author: kmwkawrt
Date: May 11, 2008 09:29

citrate de sildenafil bon marche
generique pharmacie us usa
acheter cialis
commander cialis canada soft
Achat cialis Pro

+++ SANTE MASCULINE +++ SANTE MASCULINE +++ SANTE MASCULINE +++
+
ACHETER VIAGRA BON MARCHE (ALL CARDS ACCEPTED !!!)
http://jhku.net/ACHETER-VIAGRA-BON-MARCHE/
http://jhku.net/ACHETER-VIAGRA-SOFT/
http://jhku.net/ED-PAQUETS-DESSAI/
Show full article (2.87Kb)
no comments
  Acheter acomplia canada en ligne sur internet Achat acomplia canada france commander comprime de acomplia us usa un Achat de acomplia canada avec livraison acomplia pharmacie 1         


Author: kmwkawrt
Date: May 11, 2008 09:16

Acheter acomplia canada en ligne sur internet
Achat acomplia canada france
commander comprime de acomplia us usa
un Achat de acomplia canada avec livraison
acomplia pharmacie

+++ PERTE DE POIDS +++ PERTE DE POIDS +++ PERTE DE POIDS +++
+
ACHETER ACOMPLIA BON MARCHE (ALL CARD ACCEPTED)
http://jhku.net/ACHETER-ACOMPLIA-BON-MARCHE/

ACHETER ACOMPLIA BON MARCHE (Western Union, Diners, AMEX)
http://WWW.ACHETER-ACOMPLIA.TK/
+
+
+
ACHETER XENICAL BON MARCHE (ALL CARD ACCEPTED)
http://jhku.net/ACHETER-XENICAL-BON-MARCHE/
Show full article (2.40Kb)
no comments
  FAQ 4.24 How do I reverse a string?         


Author: PerlFAQ Server
Date: May 11, 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.24: How do I reverse a string?

Use "reverse()" in scalar context, as documented in "reverse" in
perlfunc.

$reversed = reverse $string;

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

The perlfaq-workers, a group of volunteers, maintain the perlfaq. They
are not necessarily experts in every domain where Perl might show up,
so please include as much information as possible and relevant in any
corrections. The perlfaq-workers also don't have access to every
operating system or platform, so please include relevant details for
corrections to examples that do not work on particular platforms.
Working code is greatly appreciated.
Show full article (1.13Kb)
no comments
  Creating new pages automatically with PDF::API2         


Author: hotkitty
Date: May 11, 2008 00:51

Since no one in the beginners group could answer this I thought I'd
ask it to this group. I am using PDF::API2 to create PDF files from a
bunch of separate text files I have. The issue I am having is that I
am only able to create the first page of each text file and I haven't
been able to figure out how to automatically generate additional pages
if the text document requires it. In the PDF::API2::Simple module,
there is "autoflow", which will generate the additional pages you need
and fill it with the appropriate text. I have the following code and
would appreciate if anyone could guide me to how I can generate multi-
page pdf's (I've omitted some of the code that isn't relevant to
creating the pdf files):

#!/usr/bin/perl

use warnings;
Show full article (1.28Kb)
1 Comment
Your Ad Here
  FAQ 3.28 I've read perlembed, perlguts, etc., but I can't embed perl in my C program; what am I doing wrong?         


Author: PerlFAQ Server
Date: May 11, 2008 00: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.28: I've read perlembed, perlguts, etc., but I can't embed perl in my C program; what am I doing wrong?

Download the ExtUtils::Embed kit from CPAN and run `make test'. If the
tests pass, read the pods again and again and again. If they fail, see
perlbug and send a bug report with the output of "make test
TEST_VERBOSE=1" along with "perl -V".

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

The perlfaq-workers, a group of volunteers, maintain the perlfaq. They
are not necessarily experts in every domain where Perl might show up,
so please include as much information as possible and relevant in any
corrections. The perlfaq-workers also don't have access to every
operating system or platform, so please include relevant details for
corrections to examples that do not work on particular platforms.
Working code is greatly appreciated.
Show full article (1.33Kb)
no comments
1 2 3 4 5 6 7 8 9