in reply to Re: Dynamic Tk buttons from init file
in thread Dynamic Tk buttons from init file
For some reason I could not get the Plugin::Print::run to work.
Test file "foo.pl"
Then in the Plugin directory I have Print.pm#!/usr/local/bin/perl -w Plugin::Print::run;
When I run this I get Undefined subroutine &Plugin::Print::run called at foo.pl line 3.package Plugin::Print; sub run { print "Got print run!\n" } 1;
I expermented some and found that I could do this Test file "foo.pl"
Then in Plugin.pm in same directory#!/usr/local/bin/perl -w use Plugin; Plugin::Print::run; Plugin::Edit::run;
This works well enough but I'm curious why the first one didn't work?package Plugin::Print; sub run { print "Got print run!\n" } package Plugin::Edit; sub run { print "Got print run!\n" } 1;
TunesMan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Dynamic Tk buttons from init file
by rjray (Chaplain) on Mar 20, 2003 at 01:19 UTC |