For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > November 2005 > number of spaces in a given sentence using regular expression.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author number of spaces in a given sentence using regular expression.
Bioinformatician@Go.Com

2005-11-22, 6:57 pm




SET A
1. Write a perl script to find the number of spaces in a given sentence using regular expression.
2. Write a perl script to take name from command line argument and print the inputted name in both lower case and upper case. (use functions)
3. Write a perl script to evaluate sine series.
4. Write a perl script to download a protein sequence from the web using LWP module

SET B
1. Write a perl script to convert a given gene into mrna using regular expression
2. Write a perl script to check whether a given file format is fasta file or not and if it is so print its sequence only. (use file handles)
3. Write a perl script to arrange the given set of numbers in descending order and print the largest out of it.
4. Write a perl script to download a protein sequence from the web using LWP module

SET C
1. Write a perl script to find the number of vowels in a given sentence using regular expression
2. Write a perl script to duplicate a file & print no. of lines in it.
3. Write a perl script for finding the factorial of given number.
4. Write a perl script to download a protein sequence from the web using LWP module

SET D
1. Write a perl script to find the percentage of ATGC using regular expression
2. Write a perl script to take line from command line arguments and then count number of vowels in that line
3. Write a perl script to calculate a Fibonacci series of given number.
4. Write a perl script to download a protein sequence from the web using LWP module


please give me the answers of these questions.

very-2 thanks.


Timothy Johnson

2005-11-22, 6:57 pm


No.

-----Original Message-----
From: bioinformatician@go.com [mailto:bioinformatician@go.com]=20
Sent: Tuesday, November 22, 2005 2:37 PM
To: beginners@perl.org
Subject: number of spaces in a given sentence using regular expression.

=20
=20
=20
SET A=20
1. Write a perl script to find the number of spaces in a given
sentence using regular expression.
2. Write a perl script to take name from command line argument and
print the inputted name in both lower case and upper case. (use
functions)
3. Write a perl script to evaluate sine series.
4. Write a perl script to download a protein sequence from the web
using LWP module
=20
SET B
1. Write a perl script to convert a given gene into mrna using
regular expression=20
2. Write a perl script to check whether a given file format is
fasta file or not and if it is so print its sequence only. (use file
handles)
3. Write a perl script to arrange the given set of numbers in
descending order and print the largest out of it.=20
4. Write a perl script to download a protein sequence from the web
using LWP module
=20
SET C
1. Write a perl script to find the number of vowels in a given
sentence using regular expression=20
2. Write a perl script to duplicate a file & print no. of lines in
it.=20
3. Write a perl script for finding the factorial of given number.
4. Write a perl script to download a protein sequence from the web
using LWP module
=20
SET D=20
1. Write a perl script to find the percentage of ATGC using
regular expression=20
2. Write a perl script to take line from command line arguments and
then count number of vowels in that line
3. Write a perl script to calculate a Fibonacci series of given
number.
4. Write a perl script to download a protein sequence from the web
using LWP module
=20
=20
please give me the answers of these questions.
=20
very-2 thanks.
=20
=20

usenet@DavidFilmer.com

2005-11-22, 6:57 pm

Bioinformatician@Go.Com wrote:
[list of tasks
> please give me the answers of these questions.


Sure, no problem. When do you need this done?

JupiterHost.Net

2005-11-22, 6:57 pm



bioinformatician@go.com wrote:
>
>
>
> SET A
> 1. Write a perl script to find the number of spaces in a given sentence using regular expression.
> 2. Write a perl script to take name from command line argument and print the inputted name in both lower case and upper case. (use functions)
> 3. Write a perl script to evaluate sine series.
> 4. Write a perl script to download a protein sequence from the web using LWP module
>
> SET B
> 1. Write a perl script to convert a given gene into mrna using regular expression
> 2. Write a perl script to check whether a given file format is fasta file or not and if it is so print its sequence only. (use file handles)
> 3. Write a perl script to arrange the given set of numbers in descending order and print the largest out of it.
> 4. Write a perl script to download a protein sequence from the web using LWP module
>
> SET C
> 1. Write a perl script to find the number of vowels in a given sentence using regular expression
> 2. Write a perl script to duplicate a file & print no. of lines in it.
> 3. Write a perl script for finding the factorial of given number.
> 4. Write a perl script to download a protein sequence from the web using LWP module
>
> SET D
> 1. Write a perl script to find the percentage of ATGC using regular expression
> 2. Write a perl script to take line from command line arguments and then count number of vowels in that line
> 3. Write a perl script to calculate a Fibonacci series of given number.


Math::Fibonacci::Phi has everything you need, especially super_series()

> 4. Write a perl script to download a protein sequence from the web using LWP module
>
>
> please give me the answers of these questions.


I doubt many folks here have time to do your homework

> very-2 thanks.
>
>

Bob Showalter

2005-11-22, 6:57 pm

bioinformatician@go.com wrote:
> ...
> please give me the answers of these questions.


Chris Devers will be along shortly... :~)
Paul Johnson

2005-11-22, 6:57 pm

On Tue, Nov 22, 2005 at 10:36:49PM +0000, bioinformatician@go.com wrote:

> SET A
> 1. Write a perl script to find the number of spaces in a given sentence using regular expression.


> please give me the answers of these questions.


I only have time to do this one for now. Maybe others will be able to
help answer the other questions.


$_=",.,,,,,,,,,.,,,,,,,,.,,.,,,,,,,,,,,,,,.,,,,,,,,,,,.,,,,,,,,,,,,,,.,,,,,.,,,,,,,,.,,,,,,";
s/\s//gs;tr/,./05/;@a=split(//);$_=<DATA>;tr/~`'"^/0-4/;map{$o
..=$a[$i]+$_;$i++}split(//);@a=$o=~m!...!g;map{print chr}@a; __DATA__
~'"~"'`~~`~~`~~``~~"^```~"'`~~```~"'`~^`'`~"'`````^``~~"'`~^````~^`~```^`````^`~'~""~`~


[ with thanks to Brian Mathis' JAPH generator ]

--
Paul Johnson - paul@pjcj.net
http://www.pjcj.net
usenet@DavidFilmer.com

2005-11-22, 9:55 pm

Paul Johnson wrote:
> I only have time to do this one for now. Maybe others will be able to
> help answer the other questions.


Hey - no fair!!! You took the easy one! I just know I'm gonna get
stuck with #4.

Oh, well, no sense complaining - I'd better get busy writing code...
I'm sure this guy wants it done the day after yesterday.

DTaylor

2005-11-23, 12:36 am

I'm guessing that you are either a very lazy programmer who doesn't like doing his work, a student who has too much home work, or a non-programmer. If you are either of the first two, get to work! If you are the latter, there are several very good programming books that will teach you enough about programming to be able to use regular expressions, so that you can stop posting these questions on programming discussion forums I recommend "Learning Perl" you can find this on perl.com or at your local bookstore. You are in the biology field right? If you normally have a programmer assigned to do this work for you and for some reason they couldn't do it, please post that so that people will not get annoyed by it.
Chris Devers

2005-11-23, 9:55 pm

On Tue, 22 Nov 2005, Bob Showalter wrote:

> bioinformatician@go.com wrote:
>
> Chris Devers will be along shortly... :~)


Sorry, I was on vacation :-)

Please, in the future, direct all such questions to

someone_please_do_my_homework_for_me_kth
xbye@perl.org

(You'll probably be the only subscriber to the list, but oh well.)

There, have I met my obligation now? :-)


--
Chris Devers
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com