Hi,
Could anyone please give me some info on the best books to refer for perl scripting.Is there any books that cover cg production oriented topics too??
Thanks in advance
I don’t know firsthand, so this is sort of off-topic, but I’d suggest trying to avoid Perl if possible (though that may not be an option in your case). You’d be better off using something like python.
Thanks Rob.I have been using python for the past two years.Just wanted to expand my skill set to perl too.Already had come across couple of books on perl.So thought of taking expert advice in this space before starting.
I’d recommend to stay away from Perl, just like Rob said…
But, if you really want to get into it, I found this on-line tutorial useful when I learnt Perl a long time ago. Hey, the tutorial is written in 1999. But I think it’s still useful for getting the gist of Perl.
And once you’ve ran into your first problem that how come
(“A” == “A”) doesn’t work, you’ll remember why you should hate Perl. It’s (“A” eq “A”) for strings of course.
SamiV.
[QUOTE=samivRMD;6984]
And once you’ve ran into your first problem that how come
(“A” == “A”) doesn’t work, you’ll remember why you should hate Perl. It’s (“A” eq “A”) for strings of course. :)[/QUOTE]
Is that because it is a special context for strings (ie, will “A” == “A” compile, or is it like the ‘…’ string concatenation in lua?), or because their identities are different?
Rob, perl truly is evil. E.g,
if ( “foo” == “bar” )
{
print "Perl says that foo == bar
";
}
will always compile just fine and evaluate to true and print “foo is bar in Perl”.
Thus, perl is evil in my book.
The amount of times I ran into that “feature” when I was learning perl isn’t even funny.
Lua is a wonderful language for embedding, but I gave up on it for general tools when the first 3 XML libraries I found choked on unicode characters for strings (as lua native strings are 8bit chars… Thus, Python FTW. C# feels too much like C++ for my needs.
SamiV.
Oh and just to avoid being a flame-bait, obviously you should stick something like
use warnings;
as the first line to avoid the kind of newbie mistakes I just mentioned above, but when I was a newbie I didn’t know about that above magic line…
But I still think Perl is evil.
SamiV.