Dear
shridhar22, you need to read and understand
Re: using chdir($variable_name) to change directory
Relative paths are relative
- If you're standing in the living room, and ask me for directions to the bathroom and the bedroom, and I tell you:
- the bathroom is first door on the left
- the bedroom is second door on the right
And you visit the bathroom successfully, and now wish to go to the bedroom, you can't go to the second door on the right!!
The bedroom, is the second door on the right, only if your starting position is the living room.
If your starting position is the bathroom, the second door on the right is not the bedroom!
To find the bedroom by the path "the second door on the right" you have to go back to the living room.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.