Regarding module Mail-Box, and accessing "subject" field of a MBOX message

2010-01-08 Thread Shankar
rl, or Mail-box module routines? Thanks, Shankar -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Test file is not readable, while running "make test"

2009-12-31 Thread Shankar
On Dec 30, 9:39 am, shlo...@iglu.org.il (Shlomi Fish) wrote: > On Wednesday 30 Dec 2009 08:12:24 Shankar wrote: > > > Hello, > > Hi Shankar. > > > (Firstly, Thanks to Matt Trout for pointing me to this forum. I re- > > post my question below). > > > I

Re: Test file is not readable, while running "make test"

2009-12-31 Thread Shankar
27; inside the directory. > > > $ ls -al > > total 28 > > drwxr-s--x  3 shankar shankar 2048 2005-02-14 11:24 . > > drwxr-s--x  8 shankar shankar 2048 2009-12-29 13:11 .. > > -rw-r-----  1 shankar shankar 8355 2001-08-09 03:46 Common.pm > > drwxr-s--x  2 shankar shanka

Test file is not readable, while running "make test"

2009-12-30 Thread Shankar
Hello, (Firstly, Thanks to Matt Trout for pointing me to this forum. I re- post my question below). I'm using perl on AIX, and my version is v5.8.2. (Also, I'm a regular user, with no write permissions to run "make install", so installing everything on my local home directory). My primary intere

How do I replace a part of huge text file

2007-10-22 Thread anand . shankar
Hi, I would like to replace a part of a really big (4GB) text file. And the contents that I want to change is really a small but continuous portion. Could some one please help me with the best way I can do this in perl? Thanks, -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

problem with fork & wait

2004-03-29 Thread T.S. Ravi Shankar
Hi, At reaching a certain point in my perl program, I need to run a process ( say XYZ ) using SYSTEM command. The result file that this process would produce will be result.. I will have to wait until this result file is produced & then proceed extracting certain things from this file. I am imp

More died on open command (from 55103)

2003-11-10 Thread Ganesh Shankar
directory error at this line close TXTFILE; my @seqelements = ; ...goes on from here I know the conversion routine works, because it worked when I specified a single file -- Ganesh Shankar [EMAIL PROTECTED] -- http://www.fastmail.fm - Or how I learned to stop worrying and

Died on open command

2003-11-10 Thread Ganesh Shankar
= ''; open (TXTFILE,"<$seqfilename") or die $!; close TXTFILE; my @seqelements = ; ...goes on from here I know the conversion routine works, because it worked when I specified a single file. Thanks for your help in advance, Ganesh -- Ganesh Shank

why this is not working ??

2003-08-27 Thread T.S.Ravi Shankar
Hi all : I am running a process "n" number of times with a for loop. I am interested in looking for the status at specific intervals(say at every 10 iterations). I wrote the below shown code for this purpose but without success : --- open(STATUS,">> status.txt"); for ($i=0; $i<

Outputting the status while the processes are running

2003-08-26 Thread T.S.Ravi Shankar
Hi all : I need to run a process for thousands of (known number) of combinations of the settings needed for the process to run. I have the settings in different arrays & I am running the process as shown below : I would like to see the status after every 50 runs in a separate file. But the fol

fork & wait

2003-08-25 Thread T.S.Ravi Shankar
Dear all : I see these lines in a perl program : $pif = fork; if($pid == 0) { exec("hpxy -s xxx.abc"); }else{ $pid1=wait; } I could understand that the fork is needed here to get into the child process "hpxy" !! What is the need for the "wait" here ?? When will the "else" loop be entered

Display realtime data As it changes in the databse - TK

2003-08-18 Thread samuel shankar
Hi List I was wandering if someone can help me out in displaying database data in a TK window. I have tried a number of ways but I am loosing memory eventually.. I vet all "my"'s are not really mine.. All I need to do is fetch from a database and display it In a GUI based window. Or some ones has

get all the arrays with names starting with xyz

2003-08-17 Thread T.S.Ravi Shankar
Hi all : I have few arrays with names starting with "xyz_". After the initial definitions I want to change values of a particular index of all arrays whose names start with "xyz_". It would be cumbersome for me to do something like : $xyz_blahblah[$index] = "ldfhdlf"; $xyz_blooblooh[$index] = "

How do I return more than 1 array from a sub routine ?

2003-08-14 Thread T.S.Ravi Shankar
Hi all : How could I return more than 1 array or hash from a sub routine & collect them in different arrays or hashes in the calling program ?? Thanks, Ravi -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Moving between directories

2003-06-29 Thread T.S. Ravi Shankar
ce I was thinking of doing all "chdir"s inside the perl script with "system-cd"s ) Please let me know if you have any workarounds for this !! Thanks again, Ravi T.S. Ravi Shankar wrote: >Hi all : > >Could anyone tell me how I could move between the directories

Moving between directories

2003-06-29 Thread T.S. Ravi Shankar
Hi all : Could anyone tell me how I could move between the directories ( or change the present working directory ) with any perl command ?? I have tried these system '/bin/cd $HOME'; , chdir '$HOME'; , exec 'cd $HOME'; After I execute the perl code, the PWD still remains unchanged. If the a

Re: Urgent : Can I override #! defn. through any command line option??

2003-06-04 Thread T.S. Ravi Shankar
Hi David ... That answers all my questions !!! Thank you very much, Ravi "Geer, David van der" wrote: > Hi Ravi, > > The first line "#!" tells the program how te read the executable. > F.e. if you would change it into "#!/bin/ksh" it means your (perl) script will be > executed using ksh.

Re: Urgent : Can I override #! defn. through any command line option ??

2003-06-04 Thread T.S. Ravi Shankar
nd.pl line 1. Why ?? Thanks again, Ravi "Beau E. Cox" wrote: > - Original Message - > From: "T.S. Ravi Shankar" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, June 03, 2003 11:04 PM > Subj

Re: How to : Configuration / reuse of package in a different directory

2003-06-04 Thread T.S. Ravi Shankar
Hi Wang : Try this : sub BEGIN { push @INC, "mysandbox/blah"; # you can include any path here } use myPackage.pm / Ravi Wenjie Wang wrote: > Greetins, > > I'm try to use another perl module of mine in a different perl file in > different directory. I would like to know how to use

Urgent : Can I override #! defn. through any command line option ??

2003-06-04 Thread T.S. Ravi Shankar
means ?? Please advise. Thanks in advance Ravi Shankar -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: sorry about how simple this question is

2003-06-04 Thread T.S. Ravi Shankar
Hi : There are number of good books available from O'reilly ... You can get more information here : http://safari.oreilly.com You may also want to visit these links : http://archive.develooper.com/[EMAIL PROTECTED]/ http://www.ebb.org/PickingUpPerl/pickingUpPerl_toc.html http://www.regenechse

What is this doing ??

2003-06-03 Thread T.S. Ravi Shankar
Hi all : I see these lines at the very beginning lines of a perl program. Could anyone explain what this is doing ?? eval '(exit $?0)' && eval 'exec perl $PERL_OPTIONS $0 ${1+"$@"}' & eval 'exec perl $PERL_OPTIONS $0 $argv:q' if 0; In what way "eval" help here in traping the errors ??