Re: Processing files in a directory

2008-11-11 Thread Susheel Koushik
of course, there are many ways to do a job in perl. Its upto the implementer to choose. -Susheel On Mon, Nov 10, 2008 at 10:40 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: > Susheel Koushik wrote: > >> use the PERL system command. Its a wrapper for system call on your ho

Re: Processing files in a directory

2008-11-11 Thread Susheel Koushik
of the > remaining files. > > I am trying to achieve this using perl. Can u plz let me know how to > achieve this. > > Thanks, > Satish > > > On Tue, Nov 11, 2008 at 5:11 AM, Susheel Koushik <[EMAIL PROTECTED]>wrote: > >> use the PERL system comm

Re: Processing files in a directory

2008-11-10 Thread Susheel Koushik
use the PERL system command. Its a wrapper for system call on your host OS. ex: system("mv $filename $new_location/$filename"); susheel On Mon, Nov 10, 2008 at 4:39 PM, Susheel Koushik <[EMAIL PROTECTED]> wrote: > use the PERL system command. Its a wrapper for system c

Re: Processing files in a directory

2008-11-10 Thread Susheel Koushik
abt 10 secs max), I hv to move that temp* file to some other folder. > > Thanks in advance, > Satish > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://learn.perl.org/ > > > -- Susheel Koushik M Graduate Student Ira A Fulton School of Engineering Arizona State University

Re: Help on reading esc sequence

2007-06-11 Thread Susheel Koushik
hi amrita, use if($var1 =~ '\e') inplace of if(var1 eq '\e') On 6/11/07, Amrita Roy <[EMAIL PROTECTED]> wrote: Hello, Actually i m running a process using perl script.so i want to do that if i press ESC from the keyboard it will come out of the loop n comes out of the function.I am trying to

Re: Adding a comma to format localtime

2007-04-11 Thread Susheel Koushik
use this: $str = localtime; @fields = split/ /,$str; $str2 = "$fields[0]".","." $fields[2]"." $fields[1]"." $fields[4]"." $fields[3]"; print ("$str2\n"); On 4/9/07, Gregg O'Donnell <[EMAIL PROTECTED]> wrote: All, I use this line of code: my $datetime = join ' ', (split ' ', localtime)[0,2,1