---
name: "scm2perl"
section: "1p"
platform: "linux"
package: "gimp1.2-perl"
version: "1.2.3-2"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/scm2perl"
---

# scm2perl(1p)

scm2perl - convert script-fu to perl

```
 scm2perl filename.scm...
```

This program tries to convert Script-Fu (Scheme) scripts written for The Gimp into a Perl script. Don't expect too much from this version. To run it, you need the Parse::RecDescent module from CPAN.\
 **PDB functions returning arrays** Perl knows the length of arrays, Script-Fu doesn't. Functions returning single arrays return them as a normal perl array, Functions returning more then one array return it as an array-ref. Script-Fu (and the converted script) expect to get a length argument and then the arguments. Each occurrence (common ones are `"gimp_list_images"` or `"gimp_image_get_layers"`) must be fixed by hand. Marc Lehmann \<pcg@goof.com\> [*gimp*(1)](/gimp/1.md), Gimp.
