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 }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Counting number of characters in a string
by rowdog (Curate) on Jun 21, 2010 at 23:13 UTC |
In Section
Seekers of Perl Wisdom