Text::Placeholder::Group::SQL::Statement - construct preparable SQL statements
use Text::Placeholder; my $placeholder = Text::Placeholder->new( my $sql_statement = '::SQL::Statement'); $sql_statement->placeholder_re('some_name'); $placeholder->compile('DELETE FROM table WHERE field = [=some_name=]'); print ${$placeholder->execute()}, "<-\n"; print join(', ', @{$sql_statement->fields});
Provides placeholders based on a configurable RE. All placeholders matching the RE are substituted by question marks. A list of matches can be obtained.
Sets or gets the retrieved row.
Gets the captured placeholder parts.
The regular expression for matching placeholders.
This is the first public release.
Winfried Trumper <pub+perl(a)wt.tuxomania.net>
Copyright (C) 2011 Winfried Trumper
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Text::Placeholder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Placeholder
CPAN shell
perl -MCPAN -e shell install Text::Placeholder
For more information on module installation, please visit the detailed CPAN module installation guide.