Re: How to delete old directories with perl script?

2008-04-23 Thread Gunnar Hjalmarsson
Siegfried Heintze (Aditi) wrote: the following does not produce an error and does not work. $ perl -MFile::Tasks -e '(File::Tasks->new)->remove_dir("2008-03-11_15-42-58/"); File::Path is probably a better choice than File::Tasks. perl -MFile::Path -e 'rmtree("2008-03-11_15-42-58")' -- Gu

Re: How to command line perl mail client for Microsoft exhange?

2008-04-23 Thread Chas. Owens
On Thu, Apr 24, 2008 at 12:07 AM, Siegfried Heintze (Aditi) <[EMAIL PROTECTED]> wrote: > I started installing Mail::Sender, Mail::Send and Mail::Util and discovered > it is prompting me for a default SMTP server as part of the installation > server. Well I go to outlook and view my account settin

Re: How to delete old directories with perl script?

2008-04-23 Thread Chas. Owens
On Thu, Apr 24, 2008 at 12:37 AM, Li, Jialin <[EMAIL PROTECTED]> wrote: > you can use File::Find module to traverse the directory. > > I think this module is simulating the unix find command. snip File::Find is a good module, but in this case we are working with files that are all in the same dir

Re: How to delete old directories with perl script?

2008-04-23 Thread Chas. Owens
On Wed, Apr 23, 2008 at 11:58 PM, Siegfried Heintze (Aditi) <[EMAIL PROTECTED]> wrote: > I have directory names in the format of "-mm-dd_hh-mm-ss". Sometimes I > want to delete all the non-empty directories that are from last week or > earlier. Other times I want to delete all the directories

Re: How to delete old directories with perl script?

2008-04-23 Thread Li, Jialin
you can use File::Find module to traverse the directory. I think this module is simulating the unix find command. On Wed, Apr 23, 2008 at 10:58 PM, Siegfried Heintze (Aditi) <[EMAIL PROTECTED]> wrote: > I have directory names in the format of "-mm-dd_hh-mm-ss". Sometimes I > want to delete

How to command line perl mail client for Microsoft exhange?

2008-04-23 Thread Siegfried Heintze (Aditi)
I started installing Mail::Sender, Mail::Send and Mail::Util and discovered it is prompting me for a default SMTP server as part of the installation server. Well I go to outlook and view my account settings and discover that I'm connect to an exchange server. Is that what I specify for my SMTP s

How to delete old directories with perl script?

2008-04-23 Thread Siegfried Heintze (Aditi)
I have directory names in the format of "-mm-dd_hh-mm-ss". Sometimes I want to delete all the non-empty directories that are from last week or earlier. Other times I want to delete all the directories that are over a week old. Is there a script out there already that does this? Assuming the

Re: going through array of hash, it only goes through limited amount of keys while doing for each command

2008-04-23 Thread Richard Lee
John W. Krahn wrote: Richard Lee wrote: something is wrong with this.. say %yahoo's key contains the variable , X I wanted to go through the @array which has array of hashes... to see if one of the value is equal to X and if it is, wanted to assign the key of the @array to $ex_var.. Tracin

Re: going through array of hash, it only goes through limited amount of keys while doing for each command

2008-04-23 Thread Richard Lee
John W. Krahn wrote: Richard Lee wrote: something is wrong with this.. say %yahoo's key contains the variable , X I wanted to go through the @array which has array of hashes... to see if one of the value is equal to X and if it is, wanted to assign the key of the @array to $ex_var.. Tracin

Re: wrote-only language?

2008-04-23 Thread Jenda Krynicky
From: "J. Peng" <[EMAIL PROTECTED]> > Someone said Perl is a "wrote-only language", what does this mean? That the person can't spell and doesn't know Perl. Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to get drunk and

Re: Advice on how to approach character translation

2008-04-23 Thread Jenda Krynicky
From: "R (Chandra) Chandrasekhar" <[EMAIL PROTECTED]> > 3. Some transliteration examples are shown below: > > a a U+0061 LATIN SMALL LETTER A > aa a U+0101 LATIN SMALL LETTER A WITH MACRON > A a U+0101 LATIN SMALL LETTER A WITH MACRON > .a ' U+0027 APOSTROPHE >

Re: going through array of hash, it only goes through limited amount of keys while doing for each command

2008-04-23 Thread Richard Lee
John W. Krahn wrote: Richard Lee wrote: something is wrong with this.. say %yahoo's key contains the variable , X I wanted to go through the @array which has array of hashes... to see if one of the value is equal to X and if it is, wanted to assign the key of the @array to $ex_var.. Tracin

Re: going through array of hash, it only goes through limited amount of keys while doing for each command

2008-04-23 Thread Richard Lee
John W. Krahn wrote: Richard Lee wrote: something is wrong with this.. say %yahoo's key contains the variable , X I wanted to go through the @array which has array of hashes... to see if one of the value is equal to X and if it is, wanted to assign the key of the @array to $ex_var.. Tracin

Re: going through array of hash, it only goes through limited amount of keys while doing for each command

2008-04-23 Thread John W. Krahn
Richard Lee wrote: something is wrong with this.. say %yahoo's key contains the variable , X I wanted to go through the @array which has array of hashes... to see if one of the value is equal to X and if it is, wanted to assign the key of the @array to $ex_var.. Tracing the program, it only

Re: wrote-only language?

2008-04-23 Thread Octavian Rasnita
Perl is a write-only language because its main advantage "There is more than one way to do it". It is the most flexible language, so there can be very many styles of programming in perl, and because of this it is much harder to create a big team of programmers in perl than in other languages.

going through array of hash, it only goes through limited amount of keys while doing for each command

2008-04-23 Thread Richard Lee
something is wrong with this.. say %yahoo's key contains the variable , X I wanted to go through the @array which has array of hashes... to see if one of the value is equal to X and if it is, wanted to assign the key of the @array to $ex_var.. Tracing the program, it only goes through 6 line

Re: wrote-only language?

2008-04-23 Thread Rob Dixon
J. Peng wrote: > > Someone said Perl is a "wrote-only language", what does this mean? http://en.wikipedia.org/wiki/Write-only_language -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: wrote-only language?

2008-04-23 Thread Chas. Owens
On Wed, Apr 23, 2008 at 1:03 AM, J. Peng <[EMAIL PROTECTED]> wrote: > Someone said Perl is a "wrote-only language", what does this mean? snip Normally it is write-only language. This refers to some people's belief that Perl is difficult to read. That is, you can write it but you can't read it af

wrote-only language?

2008-04-23 Thread J. Peng
Someone said Perl is a "wrote-only language", what does this mean? -- J. Peng - QQMail Operation Team eMail: [EMAIL PROTECTED] AIM: JeffHua -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: grabbing text between two tokens

2008-04-23 Thread Gunnar Hjalmarsson
Sharan Basappa wrote: On Wed, Apr 23, 2008 at 8:33 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: Sharan Basappa wrote: I have gone through the text-balanced doc and tried few examples myself. $text = q{12{abc}12345}; ($extracted, $remainder) = extract_tagged($text, '{', '}'); print "$e

Re: grabbing text between two tokens

2008-04-23 Thread Sharan Basappa
On Wed, Apr 23, 2008 at 8:33 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Sharan Basappa wrote: > > > I have gone through the text-balanced doc and tried few examples > > myself. Looks like I need > > some help on this module usage and capabilities. > > Basically the text I am trying to extr

Re: Perl-GD module installation

2008-04-23 Thread Chas. Owens
On Wed, Apr 23, 2008 at 5:46 AM, sivasakthi <[EMAIL PROTECTED]> wrote: > Hi all, > > I have tried to install the Perl-GD module from source code, it throws > following error when i gave make, > > GD.xs:7:16: gd.h: No such file or directory snip > how can i eliminate the problem ? is any heade

Re: Advice on how to approach character translation

2008-04-23 Thread Chas. Owens
On Wed, Apr 23, 2008 at 5:34 AM, R (Chandra) Chandrasekhar <[EMAIL PROTECTED]> wrote: > Dear Folks, > > A scheme called ITRANS uses the ASCII printing character set and between > one and three printing characters to unambiguously represent characters in > Indic scripts or a Romanized script calle

Re: Deletion of lines in file using perl

2008-04-23 Thread Chas. Owens
On Wed, Apr 23, 2008 at 8:56 AM, <[EMAIL PROTECTED]> wrote: > Hi All, > > I need to delete some lines in file using Perl. The requirement is that > I have one file which contains following lines. > > Element * checkdout > Element * latest. snip You should read http://perldoc.perl.org/perlfaq5

Re: grabbing text between two tokens

2008-04-23 Thread Gunnar Hjalmarsson
Sharan Basappa wrote: I have gone through the text-balanced doc and tried few examples myself. Looks like I need some help on this module usage and capabilities. Basically the text I am trying to extract is embedded inside two tokens (say {}), but it can occur anywhere in the input text stream. I

Re: Deletion of lines in file using perl

2008-04-23 Thread J. Peng
On Wed, Apr 23, 2008 at 8:56 PM, <[EMAIL PROTECTED]> wrote: > Hi All, > > > > I need to delete some lines in file using Perl. The requirement is that > I have one file which contains following lines. > Please submit your question to "[EMAIL PROTECTED]". -- J. Peng - QQMail Operation Team eM

Deletion of lines in file using perl

2008-04-23 Thread Irfan.Sayed
Hi All, I need to delete some lines in file using Perl. The requirement is that I have one file which contains following lines. Element * checkdout Element * latest. And now I want to delete these lines using Perl script. Please help. Regards, Irfan

Re: Perl-GD module installation

2008-04-23 Thread J. Peng
On Wed, Apr 23, 2008 at 5:46 PM, sivasakthi <[EMAIL PROTECTED]> wrote: > Hi all, > > I have tried to install the Perl-GD module from source code, it throws > following error when i gave make, > Make sure you have downloaded and installed the following packages: a. Perl 5.6.0 or higher:

Re: Perl-GD module installation

2008-04-23 Thread Rob Coops
GD.xs:7:16: gd.h: No such file or directory GD.xs:8:21: gdfontg.h: No such file or directory GD.xs:9:21: gdfontl.h: No such file or directory GD.xs:10:22: gdfontmb.h: No such file or directory GD.xs:11:21: gdfonts.h: No such file or directory GD.xs:12:21: gdfontt.h: No such file or directory It loo

[Fwd: Re: Building/defining variables from an value in string]

2008-04-23 Thread Aruna Goke
Original Message Subject: Re: Building/defining variables from an value in string Date: Wed, 23 Apr 2008 04:46:21 -0400 From: Uri Guttman <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Newsgroups: perl.beginners References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED

Perl-GD module installation

2008-04-23 Thread sivasakthi
Hi all, I have tried to install the Perl-GD module from source code, it throws following error when i gave make, GD.xs:7:16: gd.h: No such file or directory GD.xs:8:21: gdfontg.h: No such file or directory GD.xs:9:21: gdfontl.h: No such file or directory GD.xs:10:22: gdfontmb.h: No such file or

Advice on how to approach character translation

2008-04-23 Thread R (Chandra) Chandrasekhar
Dear Folks, A scheme called ITRANS uses the ASCII printing character set and between one and three printing characters to unambiguously represent characters in Indic scripts or a Romanized script called IAST. Since characters in these scripts have Unicode code points, it should be possible to

Re: Building/defining variables from an value in string

2008-04-23 Thread Gunnar Hjalmarsson
Aruna Goke wrote: print keys %h; print "---"; say values %h; say keys %h, '---', values %h; -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/