I'd be glad to help.
The code is not terrible, on the surface. Frankly, it really only shows you're new to Perl -- no crime in that.
What was in question was whether or not the code was yours.
You still haven't made a convincing argument that it is -- but at least you are now addressing the questions.
So let's step through this, and see where we end up.
Let's start with this:
| tried to write a code to store the details of an employee into a text file as hash(%) |
For a newcomer, it is not surprising you simply tried to write the hash into a file directly -- Perl does so many things for us automatically, you might presume it can do this, too.
Sadly, however, this is not a reliable technique. There are ways to make it reliable, but (get used to this, BTW) there's a question you need to answer first:
Do you want to use a Module, or write all the code yourself?
Where we go next depends on your answer.
In reply to Re^4: Some one help me with this code.how to make it work.
by marinersk
in thread Some one help me with this code.how to make it work.
by yedukondalu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |