Re: New to perl
by kennethk (Abbot) on Mar 14, 2011 at 20:22 UTC
|
All these 14 Q's are from my last year exam paper i took from library and i am trying to solve them
Thank you for frankly explaining where these questions are coming from. Rather than explicitly answering them, I will give some quick pointers into the docs. Some of these questions are unclear to me; whether that is a problem with your transcription or the original, I cannot say.
- Describe the main features of perl .What are its characteristics which makes it suitable for Bioinformatics
perlintro, http://www.bioperl.org/wiki/HOWTO:Beginners
- What is a file handle ? How they are similar to streams
perlopentut
- What are scalar variables ?Discuss various types of variables used in perl with examples.
perldata
- Describe named Unary and file operators with examples.
perlop
- Write a perl program that asks the user to enter a name and a number n and prints the nth letter in the name.
Hint: substr
- what are global and scoped declarations in perl ? Write perl script to explain the same .
Declarations in perlsyn
- How we do loop control with next last and redo ? Where we should use them and where not ?
Loop Control in perlsyn, redo, last, next
- What are regular expressions ? Explain in detail its most important elements ?
perlre, perlretut
- Write a perl program which takes file name as arguments and counts lines in file with (a) Letter X (b) String the
Everything you need is in the above links
- What are subroutines ? How it differs from a procedure ? Explain with example how parameters are passed in subroutines.
perlsub
- Write a perl program which reads a file into a hash array.
Everything you need is in the above links
- Write a perl script which compares and concatenates two strings.
Everything you need is in the above links
- What for formats are used in perl ? How we can access formatting internals ?
I do not know what this means; do they mean perlguts or perhaps sprintf? Maybe IO Layers?
- What are hashes ? Describe all functions relevant to hashes.
perldata
If you are preparing for a test, where you found an old test in the library, your new test will likely not have the same questions on it; by gaining familiarity with the Perl documentation, you will prepare yourself for the next test, not the previous one.
| [reply] |
|
| [reply] [d/l] [select] |
|
Better yet, use Perl6::Form, which brings Perl6-style forms to Perl5. Less magical and much cleaner than the builtin forms.
| [reply] |
|
A reply falls below the community's threshold of quality. You may see it by logging in. |
Re: New to perl
by ikegami (Patriarch) on Mar 14, 2011 at 19:51 UTC
|
How about you give your answers, and we'll review them. | [reply] |
|
Guess that made us both brothers. you are welcome on board. in case you are able to fine your ways round perlmonks please teach me what you've learn t. good luck
| [reply] |
|
| [reply] |
|
Re: New to perl
by marto (Cardinal) on Mar 14, 2011 at 20:46 UTC
|
I don't believe your story, either about taking this exam paper from a library, or that you have tried in any way to solve them. If you had done so, you'd have posted your answers here asking us to comment on them.
I suspect you are either being given this task as coursework/homework that you've not bothered to do, or that this is part of an interview scenario which I know for a fact some companies issue. I've seen posts on various forums from people asking for the answers to such interview questions posed by multinational outsourcing companies.
If you take short cuts like this with your education or to gain employment, not only do you learn nothing you'll potentially put yourself under a lot of pressure. Do yourself a favor, either go learn this stuff or don't bother. You've previously been advised how to get started in your previous thread.
Update:Also read How do I compose an effective node title? and How do I post a question effectively?.
| [reply] |
|
| [reply] |
Re: New to perl
by Anonymous Monk on Mar 14, 2011 at 19:55 UTC
|
Friends don't make friends' eyes bleed with 7 unformatted posts. As it says right below the box you typed that mess into:
Please read these before you post! —
You definitely need to read all three of those.
| [reply] |
|
| [reply] |
Re: New to perl
by Corion (Patriarch) on Mar 14, 2011 at 19:59 UTC
|
Why do you claim (to be) "New To Perl" and in the same post claim to have done Perl last year in your exam paper? This does not mesh well, and I think at least one of the things you're trying to tell us is not true.
| [reply] |
|
| [reply] |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Re: New to perl
by Anonymous Monk on Mar 14, 2011 at 21:41 UTC
|
| [reply] |
A reply falls below the community's threshold of quality. You may see it by logging in. |