Soar::WM::Slurp - Read and parse Soar working memory dumps
version 0.04
use Soar::WM::Slurp qw(read_wm); use Data::Dumper; my ($WM_hash, $root_name) = read_wm(file => 'path/to/wme/dump/file'); print 'root is ' . $root_name; print Dumper($WM_hash);
Soar::WM::Slurp - Perl extension for slurping Soar WME dump files.
read_wm_file
read_wm( file=
read_wm
Note that any incomplete WME structures will be ignored; for example:
(S1 ^foo bar ^baz boo ^link S2) (S2 ^faz far ^boo baz ^fuzz buzz
The second line in the above text will be ignored. Although some of the structure there is apparent, accepting incomplete structures would require much more error and input checking. WME dumps are normally complete, so this should not be a problem.
Nathan Glenn <garfieldnate@gmail.com>
This software is copyright (c) 2012 by Nathan Glenn.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Soar::WM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Soar::WM
CPAN shell
perl -MCPAN -e shell install Soar::WM
For more information on module installation, please visit the detailed CPAN module installation guide.