Another Perler here, so ask away!

After programming string manipulations in C you'll 
appreciate how much Perl does for you. Of course Perl is 
actually written in C. :-)

The main thing to remember about strings in C is that 
they're zero-terminated arrays of chars. (Chars are small 
integers that can also be regarded as characters.) If you 
want an array of strings, you generally have to set up an 
array of pointers to arrays of char. This is more 
complicated than doing the same job in Perl.

An important thing Perl does is take care of memory 
allocation and garbage collection. In C you have to do it 
all yourself; this is a common source of bugs, memory leaks 
and insecure code.

David



Reply via email to