I've been trying to get the following script to work...
#!/usr/bin/perl
use Gimp;
use Term::ReadLine;
sub net
{
$term = new Term::ReadLine;
while( defined ($_ = $term->readline("Gimp> ")))
{
$res = eval($_) . "\n";
print("Error: $@"), next if $@;
print "\n";
}
}
exit Gimp->main;
It's the same one from
http://imagic.weizmann.ac.il/~dov/gimp/perl-tut.html#SEC9.1
I keep getting the error:
pg-shell: required callback 'net' not found (ERROR)
The perl server is definitely running. This same error is logged in the
Perl Control Center. I've been running my other gimp-perl scripts from
the command line with no problem. Those scripts are the general
Gimp::Fu type.
What might be wrong?
Thanks,
Michael