since you only have two variables, have you considered using an array and reversing the array ordering afterwards?
Another thing, get accustomed to and stick around the strictures, and yeah, your code tags would have to be used to contain only your code and not the other body elements in your message (so please update your post accordingly), The code tags are figured to maintain the spaces and keep the code the way you organized it (preserving the lines relationship) so when used out of this context the display would really get distorted for each one of us (Read=> costing you vote-downs and grumbling-upons). So when you preview your message before creating it make sure:
- It looks much like the other ones here in PM.
- The code tags only contain code.
- That you haven't employed the deprecated pre tags.
- AND Read Posting on PerlMonks. (updated)
Thanks :)
#!/usr/local/bin/perl
use strict; #get used to this
use warnings; #and maybe this one too
Excellence is an Endeavor of Persistence.
Chance Favors a Prepared Mind.
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.