I'm sorry, but I don't see
why its different at all! As a matter of fact, in both cases, I have variables in a string. The contents of those variables should change later on, but not the string itself! I could agree that there are different approaches to each (basically because on deals with numbers and the other with text) but that doesn't mean that the presented
wish changes.
Had I defined $person and $adjective (with different values) before the string, then both would be practically the same examples.
I don't think I've done a good job of explaining what I was thinking about, and I am starting to think that
interpolation doesn't quite get the idea through. Referencing is closer as a
term, but it has already been defined, and I don't beleive it comes close to what I wish perl would do either. Its fustrating to try and explain a concept that doesn't have any good examples (that I can provide at least).
Nevertheless, thanks for the input!
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.