RexOps / Rex

Rex, the friendly automation framework
https://www.rexify.org
716 stars 223 forks source link

Error in Documentation "Rex::Commands::File" #1034

Closed LeMerP closed 8 years ago

LeMerP commented 8 years ago

Hi guys,

I found an documentation error here: URL: http://rexify.org/docs/api/1.4/rex/commands/file.pm.html#file_read-file_name- Section:

 task "read-passwd", "server01", sub {
   my $fh = file_read "/etc/passwd";
   for my $line = ($fh->read_all) {
     print $line;
   }
   $fh->close;
 };

for my $line = ($fh->read_all) should be: foreach my $line ($fh->read_all)

Regards

ferki commented 8 years ago

@LeMerP: good catch, thanks!