Re: mail

2002-01-12 Thread Prahlad Vaidyanathan
v. ps. Another thing, it may not be such a good idea to leave your mail in the spool directory. It makes more sense to save it in your home directory ( ~/Email, say). Simply because you always have control over your own home directory. -- Prahlad Vaidyanathan <[EMAIL PROTECTED]> "D

Re: mail

2002-01-12 Thread Prahlad Vaidyanathan
v. ps. Another thing, it may not be such a good idea to leave your mail in the spool directory. It makes more sense to save it in your home directory ( ~/Email, say). Simply because you always have control over your own home directory. -- Prahlad Vaidyanathan <[EMAIL PROTECTED]> "D

Re: why does open()ing happen only at the line ?

2002-01-12 Thread Prahlad Vaidyanathan
etc). But, all the same, shouldn't it wait for the password to be entered _before_ printing 'test' ? Now I'm totally stumped. Thanks. pv. -- Prahlad Vaidyanathan <[EMAIL PROTECTED]> There's nothing very mysterious about you, except that nobody really knows your origin

Re: why does open()ing happen only at the line ?

2002-01-09 Thread Prahlad Vaidyanathan
. Is it inadvisable to open the said file like this (see the script > > above) ? If so, why ? > > Opening it like this is fine, but I would use Perl to do the grepping, not > several invocations of grep. I changed that. But, I was wondering if there is a 'sudo' thingy

why does open()ing happen only at the line ?

2002-01-08 Thread Prahlad Vaidyanathan
nadvisable to open the said file like this (see the script above) ? If so, why ? -- Prahlad Vaidyanathan <[EMAIL PROTECTED]> I love ROCK 'N ROLL! I memorized the all WORDS to "WIPE-OUT" in 1965!! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

bash 'trap' equivalent ?

2002-01-08 Thread Prahlad Vaidyanathan
Hi, Is there a perl equivalent of the 'trap' command in bash ? The reason I ask is, I create a temporary file at the start of a script, and I want to ensure that that temporary file gets removed in case the user hits C-c before the script finishes running. pv. -- Prahlad Vaidyanath

'my' for each loop or no ?

2002-01-08 Thread Prahlad Vaidyanathan
something else ; } pv. -- Prahlad Vaidyanathan <[EMAIL PROTECTED]> drug, n: A substance that, injected into a rat, produces a scientific paper. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: CGI perl html urgent

2002-01-07 Thread Prahlad Vaidyanathan
ghlighting ? I've been using Vim for a very long time now, but last time I checked Emacs didn't do it. pv. -- Prahlad Vaidyanathan <[EMAIL PROTECTED]> In vino veritas. [In wine there is truth.] -- Pliny -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: grabbing leading spaces from line

2002-01-05 Thread Prahlad Vaidyanathan
Hi, On Fri, 04 Jan 2002 Jeff 'japhy' Pinyan spewed into the ether: > On Jan 4, Prahlad Vaidyanathan said: > > >I tried this : > > > >my $text = " this is a test" ; > > > ># Test 1 > >my $leading_spaces = ($tex

grabbing leading spaces from line

2002-01-04 Thread Prahlad Vaidyanathan
$text =~ m/^(\s+)/) ;# this prints the spaces Why does the 2nd case work, when the 1st case doesn't ? pv. -- Prahlad Vaidyanathan <[EMAIL PROTECTED]> You may get an opportunity for advancement today. Watch it! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: grabbing leading spaces from line

2002-01-04 Thread Prahlad Vaidyanathan
Hi, Oh nevermind .. I found Text::Tabs :-) pv. -- Prahlad Vaidyanathan <[EMAIL PROTECTED]> Got Mole problems? Call Avogadro at 6.02 x 10^23. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Display filter for emails in mutt

2002-01-01 Thread Prahlad Vaidyanathan
x27;real programmers' would go about doing this :-) #!/usr/bin/perl -w # File: display_filter.pl # Last Update: Sun, 30 Dec 2001 12:00:39 +0530 # Modified By: Prahlad Vaidyanathan <[EMAIL PROTECTED]> # Usage : # set $display_filter in muttrc to this script, and make script executable

Re: add text to the end of a word. HELP!!

2002-01-01 Thread Prahlad Vaidyanathan
Hi, On Mon, 31 Dec 2001 Peter Lemus spewed into the ether: > Hi I need to add a word to the end of a word inside a > file. Correct me if i'm wrong, but isn't a tool like perl over-kill for this situation - why not just use sed ? pv. -- Prahlad Vaidyanathan <[EMAIL P

Display filter for emails in mutt

2001-12-29 Thread Prahlad Vaidyanathan
mat. #!/usr/bin/perl -w # File: display_filter.pl # Last Update: Sat, 29 Dec 2001 13:28:08 +0530 # Modified By: Prahlad Vaidyanathan <[EMAIL PROTECTED]> # Usage : # set $display_filter in muttrc to this script, and make script executable # THANKS # * thomas hurst's quotefix.rb #