install problems

Andreas J. Koenig andreas.koenig.gmwojprw at franz.ak.mind.de
Fri Apr 21 07:27:55 UTC 2006


>>>>> On Thu, 20 Apr 2006 18:29:52 -0700, "Brian Kaino" <ganthirogani at hotmail.com> said:

  > open(TEST, "test.txt") or die "Can't open file";
  > $mogfs->store_file("test","txt",TEST);

No mogilefs problem, just wrong usage of filehandles.

Try something like

 open my $fh, "test.txt" or die "Can't open file";
 $mogfs->store_file("test","txt",$fh);

or if you insist on old-style:

 open(TEST, "test.txt") or die "Can't open file";
 $mogfs->store_file("test","txt",*TEST);

Hope this helps,
-- 
andreas


More information about the mogilefs mailing list