XP is just a number | |
PerlMonks |
Re: A C-like brain in a Perl-like worldby tachyon (Chancellor) |
on Sep 26, 2001 at 23:23 UTC ( [id://114913]=note: print w/replies, xml ) | Need Help?? |
You do it using a hash like this - it is rather brief :-) but that's perl for you:
There is a thing called the Perl FAQ which is nine documents covering all the common stuff you will want to do like merge arrays, find intersections..... By the way it will be a good idea to lose the TRUE FALSE habit. In perl everything is true except for:
This is really handy as it lets you do stuff like print @array if @array which will only print @array if it contains elements and is thus true or &some_func if $flag which will only call the sub if $flag is true. This also means that unless you have defined a sub sub FALSE { 0 } that when you think you return FALSE you don't.
UpdateCheeseLord points out a error in my understanding. Thanks! cheers tachyon s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In Section
Seekers of Perl Wisdom
|
|