login about faq

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.

asked Jun 08 '12 at 07:05

srstanley's gravatar image

srstanley
46226


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

link

answered Jun 08 '12 at 09:45

srstanley's gravatar image

srstanley
46226

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×11

Asked: Jun 08 '12 at 07:05

Seen: 1,042 times

Last updated: Jun 08 '12 at 09:45

powered by OSQA