Okay, I'll try again, now that I'm logged in.
Textarea's are far from vi or emacs.
Basically, about C as Perl you _all_ have it wrong.
I use (pointers) a lot in my Perl (by reference) unless
you went to school when they misinterpreted value/reference.
For another time.
My original thought about 'until' as being somewhat like a properly wrapped C macro which would say do{...}while(0) is that C doesn't have 'until' and I've seen where it can and should be used. until else is a non-sequitor for the most part.
Other C things are;
sub func {
my($hr_h, $ar_l, $this) = @_;
# instead of all the shift, shift, shift
# seems quite clear
my @these;
# I'll try to wantarray too.
foreach my $i (keys(%$hr_h)) {
if($i == $$ar_l
$i && $hr_h->{$i} == $this) {
....
push(@these, $ar_l->
$i);
}
}
wantarray? @these: \@these;
}
# not the best of examples but shows 2 ways to talk with
# an array pointer and uses (for good) of wantarray as the
# return value.
If you have more questions, especially you 'chromatic',
send them on over to here
http://www.theworld.com/~morourke/
see also,
http://www.theworld.com/~morourke/gibberish/
So C and Perl _are_ beautifully intertwined.
Happy Thanksgiving to one and all
The fact that its a textarea is bad enough, but come on folks, if code is involved, let's get a bit more indentation-centric. That's not a word, I'm sure. I wouldn't write any real code without tabs and some smarts. Can I help you 'monks'? Indenting is _not_ 'press the space bar'. Nonsense. Thanks. Michael morourke@theworld.com
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.