Thanks to everyone and their input..
I like the variety of ways to do this.. some obvious, now that I see them, and others more complicated.. this helps me see different angles to the issue and is much appreciated.
I'd like to clarify on an issue or two:
I do want to use reverse, BUT, I was told that the work I am going into at my new job may need to make use of printing backwards w/o using reverse. (They did not specify why.)
I am sorry someone feels as if I pawned off my homework assignment. I actually was doing web and book searches for a couple of hours before I decided to post here.. BEING NEW to perl, I wasn't sure what to look for, or search for.
Does anyone have suggestions for how to search for stuff, AND I am not meaning, how to use the search pages, but terminology and what not for trying to find what I am looking for?
SANITY: Sanity is a one trick pony, no other options. Being insane, you have LOTS of options available to you!
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||