comp.lang.perl.misc
  Home FAQ Contact Sign in
comp.lang.perl.misc only
 
Advanced search
December 2007
motuwethfrsasuw
     12 48
3456789 49
10111213141516 50
17181920212223 51
24252627282930 52
31       1
2007
 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
  List of free people search engine         


Author: cyber
Date: Dec 7, 2007 20:42

List of free people search engine -- people search, white page,
background check, people finder, find people, public record, lookup
phone number, find phone number, reverse address lookup, usa people
search, cell phone number search, look phone number up, cell phone
number look up, lookup cell phone number, address find number phone,
find people address, us people search
http://www.geocities.com/freefreepeople/
no comments
  FAQ 4.14 How can I compare two dates and find the difference?         


Author: PerlFAQ Server
Date: Dec 7, 2007 18: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)
no comments
  Perl Question         


Author: amerar
Date: Dec 7, 2007 13:27

Hi All,

I have an array that I form in Unix, KSH:

set -A fnames "daily_prices.fdp previous_prices.zprs eps_reports.ex3
Z_IND.DAT X_INDUSTRY.SEQ"

Then, I try and pass that to a Perl script: ./a.pl $fnames

I receive it in the Perl script: $x = $ARGV[0];

However, only the first element of the array is prevent......

What am I doing wrong?

Thanks!
no comments
  FAQ 4.47 How do I handle circular lists?         


Author: PerlFAQ Server
Date: Dec 7, 2007 12: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.47: How do I handle circular lists?

Circular lists could be handled in the traditional fashion with linked
lists, or you could just do something like this with an array:

unshift(@array, pop(@array)); # the last shall be first
push(@array, shift(@array)); # and vice versa

You can also use "Tie::Cycle":

use Tie::Cycle;

tie my $cycle, 'Tie::Cycle', [ qw( FFFFFF 000000 FFFF00 ) ];

print $cycle; # FFFFFF
print $cycle; # 000000
print $cycle; # FFFF00

--------------------------------------------------------------------
Show full article (1.53Kb)
no comments
  Re: /e modifier to s///; short "1 liner" ?         


Author: Name withheld by request
Date: Dec 7, 2007 11:55

In article <4759904e$0$11892$afc38c87@>,
Name withheld by request nyx3.nyx.net> wrote:
>Pls consider:
>
> $ echo 'Dec 9'|perl -lpe 's/(Dec)(\s+)(\d+)/printf "$1$2 %%d--huh?:",$3 + 5;/e;'
> Dec 14--huh?:1
>
>How do I get rid of the "1" in "--huh?:1". Also why is the "1" there?

still not sure we the "1" is coming from
>If there is a cleaner approach to the above 1 liner, that would be fine
>also - I just want preserve the rest of the input,
>and add an integer offset to the date.

I was not thinking about the -p switch very clearly...
This works for me:

$ echo 'a b c Dec 9 d e f'|perl -lne 's/^(.*?)(Dec)(\s+)(\d+)(.*)$/printf "$1$2$3 %%d$5\n",$4 + 5/e;'
a b c Dec 14 d e f
4 Comments
  passing arguments to a shell script from a perl script         


Author: doni
Date: Dec 7, 2007 11:44

Hi,

Is there anyway can I pass arguments to a shell (bash) script from
within a perl script and execute the shell script.

The reason I want to call a shell script is that I want to export
environmental variables. Since, we can't do it from a perl script, I
wanted to write the environmental variables in a shell script and
execute it.

Can anyone let me know how can I do this in perl.

Thanks,
doni
4 Comments
  Rent XXX ADULT DVDs ONLINE - Try this great new service for free!         


Author: drentals173
Date: Dec 7, 2007 11:03

I love it.....Huge Selection of porn movies from your favorite stars.
Various plans. Discreetly delivered to your door. Think NetFlix for
Porn...TRY IT FREE! IT'S AWESOME!
http://in.urentdvds.com/c/dvdIn.cgi/3/1280876/F

AWESOME FREE TRIAL!
http://in.urentdvds.com/c/dvdIn.cgi/3/1280876/F

Here's how it works:

1. Create a XXX rental list online. There are 1,000's of movies to
choose from!

2. Your DVDs are delivered immediately via mail in a non-discript
envelope.

3. Keep each movie as long as you want, return it whenever you want,
no late fees!
Return the movie via the provided pre-paid envelope. Delivery and
return postage is always free.

TAKE MY ADVICE AND TRY IT NOW - FOR FREE!
http://in.urentdvds.com/c/dvdIn.cgi/3/1280876/F
no comments
  Re: Doing the Impossible? :: Is there anyway to access custom .Net DLLs from within Perl         


Author: SteveM
Date: Dec 7, 2007 09:50

On Dec 7, 9:15 am, Ben Morrow wrote:
> Quoth SteveM philips.com>:
>
>
>
>
>
>> On Dec 7, 8:39 am, "J. Gleixner"
>> wrote:
>>> SteveM wrote:
>>>> I am thinking from my research that this is probably one of those
>>>> things that just can not be done,
>
>>> Hu.. maybe I don't understand, but searching for "perl 'accessing dll'"
>>> on my favorite Internet search engine showed many links about how
>>> to do this. One of them showed using Win32::API:
>
>> Actually I saw these posts, and believe it or not I did spend some
>> time on google. The problem is not getting perl to use DLLs, as you
>> stated that can be easily done, but .Net DLLs are a little trickier. ...
Show full article (1.76Kb)
no comments
  Posting Guidelines for comp.lang.perl.misc ($Revision: 1.8 $)         


Author: tadmc
Date: Dec 7, 2007 00:11

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 4.44 How do I test whether two arrays or hashes are equal?         


Author: PerlFAQ Server
Date: Dec 7, 2007 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.44: How do I test whether two arrays or hashes are equal?

The following code works for single-level arrays. It uses a stringwise
comparison, and does not distinguish defined versus undefined empty
strings. Modify if you have other needs.

$are_equal = compare_arrays(\@frogs, \@toads);
Show full article (2.81Kb)
no comments