NAME FML::Command::DataCheck - parse, clean up et.al. command buffer. SYNOPSIS use FML::Command::DataCheck; my $check = new FML::Command::DataCheck; my ($comname, $comsubname) = $check->parse_command_buffer($clean_command); my $options = $check->parse_command_arguments($clean_command, $comname); DESCRIPTION This class provides command parsing functions. METHODS new($args) constructor. parse_command_buffer($command) return command name ( ^\S+ in $command ) and the sub name as ARRAY (STR, STR). The returned values are already clean. parse_command_arguments($command, $comname) return arguments after command name $comname in $command as ARRAY_REF. find_special_keyword($curproc, $ra_data) check the message of the current process to find whether it contains some special keyword e.g. "confirm". find_anonymous_command_mail_allowed_commands($curproc) check the message of the current process to find whether it contais special keyword e.g. "confirm". cleanup($string) clean up the given string and return a cleaned one. For example, "# ls uja " -> "ls uja" CODING STYLE See "http://www.fml.org/software/FNF/" on fml coding style guide. AUTHOR Ken'ichi Fukamachi COPYRIGHT Copyright (C) 2002,2003,2004,2005,2006 Ken'ichi Fukamachi All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. HISTORY FML::Command::DataCheck first appeared in fml8 mailing list driver package. See "http://www.fml.org/" for more details.