Hi,
I'm trying out File::Find::Object::Rule and get a problem.
Here a minimal example:
#! /usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
use File::Find::Object::Rule ;
my $plf = File::Find::Object::Rule->file->name("*.pl")->start( "./" );
while ( my $perl_file = $plf->match ){
print "$perl_file\n";
}
This yields:
Can't call method "match" without a package or object reference
at ./test_find_object_rule.pl line 12.
The example is pretty much modelled after what the man page gave. Any
idea what I'm doing wrong?
--
Manfred
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/