Re: custom module and lib

2011-01-31 Thread a b
Thanks much for your response!! Making it more clear. I want to make tar ball which contains my perl scripts and no other dependencies required. like Net::Rsh,Net::Telnet etc once user untar it, he should be able to run it from anywhere without any extra perl modules. I am thinking that might be

Re: custom module and lib

2011-01-31 Thread Octavian Rasnita
From: "a b" Thanks much for your response!! Making it more clear. I want to make tar ball which contains my perl scripts and no other dependencies required. like Net::Rsh,Net::Telnet etc once user untar it, he should be able to run it from anywhere without any extra perl modules. I am thinkin

Re: date handle

2011-01-31 Thread John Delacour
At 22:17 -0800 30/01/2011, John W. Krahn wrote: p...@mail.nsbeta.info wrote: $ perl -MTime::Local -le 'print timelocal(0,0,0,1,1,1900)' Cannot handle date (0, 0, 0, 1, 1, 1900) at -e line 1 why Time::Local can't handle the date of 1900? Unix time starts at 1 Jan. 1970 so a time in 1900 is i

Re: custom module and lib

2011-01-31 Thread Rob Dixon
On 31/01/2011 09:27, a b wrote: Making it more clear. I want to make tar ball which contains my perl scripts and no other dependencies required. like Net::Rsh,Net::Telnet etc once user untar it, he should be able to run it from anywhere without any extra perl modules. I am thinking that might

Renaming with a specific spec

2011-01-31 Thread Harry Putnam
Looking for a renaming tool with certain capabilities, but when googling or searching cpan its quite hard to tell if the tool can or not satisfy them. So, I hope someone can tell me right off the top of their head if there is a renaming tool on cpan or anywhere else for that matter that can handle

Re: Renaming with a specific spec

2011-01-31 Thread Jim Gibson
At 8:41 PM -0600 1/31/11, Harry Putnam wrote: Looking for a renaming tool with certain capabilities, but when googling or searching cpan its quite hard to tell if the tool can or not satisfy them. So, I hope someone can tell me right off the top of their head if there is a renaming tool on cpan

sorting report

2011-01-31 Thread Chris Stinemetz
I would like to sort my final report in the following order: $data[31],$data[32],$data[38] How would I add this into my following program to get the report sorted this way? Thanks in advance. Chris #!/usr/bin/perl use warnings; #use strict; use FileHandle; use IO::Handle; RAW->format_lines_

help with zip files and file sizes

2011-01-31 Thread Balachandran Sivakumar
Hi, I have 2 versions of a zip file(same archive, but with updates.). I need to compare the 2 versions. I adopted the following approach. The files are v1.zip and v2.zip. 1) extract to /tmp/v1 and /tmp/v2 2) Get the list of files in /tmp/v1 and store to @files_v1 3) Get the list of files in

Re: Renaming with a specific spec

2011-01-31 Thread John W. Krahn
Jim Gibson wrote: You are not likely to find such a specific tool. However, you can develop your own tool. Here is a renaming program adapted from the one in the Perl Cookbook, Recipe 9.9: #!/usr/bin/perl # # rename # # perl script to rename files # # Usage: # # rename perlexpr [files] # ($op

Re: help with zip files and file sizes

2011-01-31 Thread Parag Kalra
You should probably use a Zip parser - http://search.cpan.org/search?mode=module&query=Archive%3A%3AZip ~Parag On Mon, Jan 31, 2011 at 11:15 PM, Balachandran Sivakumar < benignb...@gmail.com> wrote: > Hi, > > I have 2 versions of a zip file(same archive, but with updates.). > I need to co