develooper Front page | perl.beginners | Postings from April 2012

File::Find::Object::Rule problem

Thread Next
From:
Manfred Lotz
Date:
April 22, 2012 20:50
Subject:
File::Find::Object::Rule problem
Message ID:
20120423052144.04896fbc@arcor.com
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





Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About