in reply to Re: Help using self-made but very simple Module
in thread Help using self-made but very simple Module
Can't call method "mtime" without a package or object reference at Modules/ScriptUpdate.pm line 2
This works if i use it as a sub_routine. I added the File::stat lib but still get the error.
Here the code that line references.
my $mtime = stat($filename)->mtime;
This is in the package. Do I need to bless something? Reading up on bless now but that's all new to me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Help using self-made but very simple Module
by almut (Canon) on Oct 12, 2009 at 15:27 UTC | |
by kdmurphy001 (Sexton) on Oct 12, 2009 at 15:39 UTC |