#!/usr/bin/pugs #Copyright 2008 Steffen Jobbagy-Felso #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU Affero General Public License as published by #the Free Software Foundation, version 3 of the License. # #This program is distributed in the hope that it will be useful, #but WITHOUT ANY WARRANTY; without even the implied warranty of #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #GNU General Public License for more details. # #You should have received a copy of the GNU Affero General Public License #along with this program. If not, see . #In the "official" distribution you can find the license in #agpl-3.0.txt in the docs folder of the package. use v6; #use strict; use LibFpdbImport; use LibFpdbShared; my Database $db .= new(:backend, :host, :database, :user, :password); #todo: below doesnt work my Importer $imp .= new(:db($db), :filename); #perlbug?: adding another named argument that isnt listed in the constructor gave very weird error. say $imp;