Re: download a protein sequence from the web using LWP module

2005-11-22 Thread Suvajit Sengupta
Please avoid posting these kind of requests. The forum is here to sort out our problems, not to solve your homework !! Regards, Suvajit [EMAIL PROTECTED] wrote: SET A 1. Write a perl script to find the number of spaces in a given sentence using regular expression. 2. Write a

Execute newgrp system command

2005-11-21 Thread Suvajit Sengupta
Hi, I want to login into a new group using 'newgrp' UNIX command.Every newgrp command invokes a new shell. But when I am trying to execute this system command from a perl script the script is terminating and returning the prompt of the new shell . Can anyone suggest on what can be done to

Re: Execute newgrp system command

2005-11-21 Thread Suvajit Sengupta
script returns error telling the sourced file could not be found. Moreover changing the scripts group permission wont do hold good for my case. I am at bay now !! Regards, Suvajit Shawn Corey wrote: Suvajit Sengupta wrote: Hi, I want to login into a new group using 'newgrp' UNIX command.Every

Check empty hash

2005-11-16 Thread Suvajit Sengupta
Hi, How can I test whether a hash is empty or not ? For e.g: I have reference to a hash , say $preCommand and I get $preCommands as {} , Its an empty hash, but it exists and is also defined. I need to check whether the hash is empty or not. Does anyone has any clue ?

Re: Check empty hash

2005-11-16 Thread Suvajit Sengupta
); If the output is VAR1= {}; Then there are no entries in the has tables HTH Regards, Shaman -Original Message- From: Suvajit Sengupta [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 16, 2005 4:33 PM To: Perl Beginners List Subject: Check empty hash Hi, How can I test whether

Re: Check empty hash

2005-11-16 Thread Suvajit Sengupta
Thanx, Beau ..it worked !! Regards, Suvajit Beau E. Cox wrote: Hi Suvajit Sengupta - At 2005-11-16, 01:32:31 you wrote: Hi, How can I test whether a hash is empty or not ? For e.g: I have reference to a hash , say $preCommand and I get $preCommands as {} , Its

Re: Rename a file.

2005-10-26 Thread Suvajit Sengupta
Hi, needs further details of the script. Regards, Suvajit Pant, Hridyesh wrote: Hi while renaming a file I am getting below error on windows environment.. Couldn't rename to : Permission denied Couldn't rename to : Permission denied Couldn't rename to : Permission denied Can any body

Re: white space between roam and act

2005-10-19 Thread Suvajit Sengupta
Hi, To ignore the white space in between ROAM and ACT use /x modifier of Perl RE to extend your pattern's legibility by permitting whitespace and comments. Hope that will serve your purpose. Instead of if ($msg =~ /roam act/i) Use if ($msg =~ /roam act/ix) Regards, Suvajit K.Moeng

Re: how to find missing value.

2005-10-10 Thread Suvajit Sengupta
Hi, If the array A is a list of consecutive N natural numbers, then missing number,n = Sum of N natural numbers + Sum of the numbers in Array A. Regards, Suvajit Jabir Ahmed wrote: Hello I need to know the best way to get a missing element from an array. i have an array @a of size

Re: hi

2005-10-10 Thread Suvajit Sengupta
Hi, Can you post the whole script. Possibly you have declared 'use strict' in your code or it has been set default. The problem is that the compiler is demanding explicit declaration of the variables that you have used. declaring @shrimp as : my @shrimp = COO; and foreach my $tuna (@shrimp) {

Re: Problem reading data from an HTML file

2005-09-15 Thread Suvajit Sengupta
Nath, Alok (STSD) wrote: Can anyone point out why it is not outputting anything ? It is suppose to read an HTML file and display the table contents. One thing I observed is - It is not entering the for loop and I s not printing anything ( in print Table found at , join(',', $ts-coords),

[Fwd: Re: Infinite loop problem]

2005-09-13 Thread Suvajit Sengupta
Hi Vineet, Since Perl provides strong feature of pattern matching of Regular Expn you should use that. Just read in the pattern GAGAGAGAGGA from the file and store it in a scalar variable. You can refer to the following perl code snippet for getting yout job done. #! /usr/bin/perl my $x