Do you know where your variables are? | |
PerlMonks |
Re^2: How to determine if 'ref' is wanted? (ala 'wantarray')by perl-diddler (Chaplain) |
on Nov 07, 2011 at 19:58 UTC ( [id://936568]=note: print w/replies, xml ) | Need Help?? |
So you are giving me reasons why you think it shouldn't generally be done. That's fine. I agree. But ... I'm still looking for an answer to the question. Besides, 'way to magical'...having a function that acts like an array... yeah...right...*NOT*.... People have functions that grab onto operators and such all the time...those are no less 'magical'. It's call 'syntactic sugar'.... might NOT be something I'd use everywhere, since in an OO setup, you don't usually want to give the 'client' direct access to your array, but in some cases, the efficiency is worth the trade off -- especially if you are your own client and know you'll be "well behaved"...:-)... As for :
It also violates the HTML standard. I.e. it breaks tools that use the standard. If PM used a keyword that wasn't part of the HTML standard, like 'literal', then there wouldn't be a prob, but redefining standard HTML...UG... better would be a PM specific tag, like pm_code... then its likely to never conflict with any future reserved words...
Try https://addons.mozilla.org/en-US/firefox/addon/write-area/. It brings features to pm, that pm 'should' have builtin, (most sites that have html composition have builtin html editors....but not slashdot, and not perlmonks...)... perlmonks is more like a social site -- a community site, than a new site -- so IMO, I think it should move toward the 'friendly side' rather than expecting people to write code to post a message...But that' just my feeling... At least slashdot is smart enough to recognize plaintext and leave it as such .. whereas here...all formatting is stripped, and a proprietary formatting language is used...ug! About the above addon...to use it...when you get a write box, just right-click and say 'edit in a write area' brings up a little thml editor right in the window. (I sorta prefer it when it comes up outside the window as it does on most sites...not sure why it is different here...(same on sysinternals site)...edits inline)...
In Section
Seekers of Perl Wisdom
|
|