@@ -97,7 +97,7 @@ use base qw(Rex::Exporter);
97
97
98
98
use vars qw( %file_handles) ;
99
99
100
- =head2 template($file, @ params)
100
+ =head2 template($file [, % params] )
101
101
102
102
Parse a template and return the content.
103
103
@@ -290,7 +290,7 @@ sub _get_std_template_vars {
290
290
return %template_vars ;
291
291
}
292
292
293
- =head2 file($file_name, %options)
293
+ =head2 file($file_name [ , %options] )
294
294
295
295
This function is the successor of I<install file > . Please use this function to upload files to your server.
296
296
972
972
-> report_resource_end( type => " delete_lines_matching" , name => $file );
973
973
}
974
974
975
- =head2 delete_lines_according_to($search, $file, @options)
975
+ =head2 delete_lines_according_to($search, $file [ , @options] )
976
976
977
977
This is the successor of the delete_lines_matching() function. This function also allows the usage of on_change and on_no_change hooks.
978
978
@@ -1016,7 +1016,7 @@ sub delete_lines_according_to {
1016
1016
1017
1017
}
1018
1018
1019
- =head2 append_if_no_such_line($file, $new_line, @regexp)
1019
+ =head2 append_if_no_such_line($file, $new_line [ , @regexp] )
1020
1020
1021
1021
Append $new_line to $file if none in @regexp is found. If no regexp is
1022
1022
supplied, the line is appended unless there is already an identical line
@@ -1047,7 +1047,7 @@ sub append_if_no_such_line {
1047
1047
_append_or_update( ' append_if_no_such_line' , @_ );
1048
1048
}
1049
1049
1050
- =head2 append_or_amend_line($file, $line, @regexp)
1050
+ =head2 append_or_amend_line($file, $line [ , @regexp] )
1051
1051
1052
1052
Similar to L<append_if_no_such_line> , but if the line in the regexp is
1053
1053
found, it will be updated. Otherwise, it will be appended.
@@ -1302,7 +1302,7 @@ sub extract {
1302
1302
1303
1303
}
1304
1304
1305
- =head2 sed($search, $replace, $file)
1305
+ =head2 sed($search, $replace, $file [, %options] )
1306
1306
1307
1307
Search some string in a file and replace it.
1308
1308
0 commit comments