in reply to (jcwren) Re: Counting number of characters in a string
in thread Counting number of characters in a string
It didn't working
use strict; { my $string = "Oh please, good sir program, what is my length?"; printf ("The length is %d characters\n", howlong ($string)); use Inline C => <<'END_OF_C_CODE'; #include <string.h> int howlong(char *s) { return strlen (s); } END_OF_C_CODE }
In Section
Seekers of Perl Wisdom