Gimp Perl Server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux