Archived Forum Post

Index of archived forum posts

Question:

ckstring in perl (version 5.10)

Jun 08 '12 at 09:45

How, in perl do I use the features of ckstring();?

Code fragment that i'm using to look for test* in a string.

$simon = new chilkat::CkString();

$success=$simon->append("testfilename");

$match=$simon->containsSubstringNoCase("test.");

I eventually want to replace the two strings with variables to do the comparisons.

Any help would be greatly appreciated.

Thanks in advance.


Answer

My bad on this, should have used the following and all worked fine:

$simon = new chilkat::CkString();

$success=$simon->setString("testfilename");

$match=$simon->matches("test*");

Cheers