X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=docs%2FGoalfile.pod;h=9917fd02f6561ba1e65926412671333488253860;hb=b29931c35b032141aaa8de370d9adbfc10705bf2;hp=9731cb1c8c3393de0f370409fcc6963e3bb9713d;hpb=333e7443bbcb0dc07b113d70b9d52cdabfef5ae9;p=goals.git diff --git a/docs/Goalfile.pod b/docs/Goalfile.pod index 9731cb1..9917fd0 100644 --- a/docs/Goalfile.pod +++ b/docs/Goalfile.pod @@ -14,6 +14,40 @@ Goalfile - introduction, tutorial, and reference for writing goal files =head2 Standard Functions +=head3 basename (path) + +For example: + + basename ("dir/file.ext") ⇒ "file.ext" + +Returns the filename part of the path. + +=head3 dirname (path) + +For example: + + dirname ("dir/file.ext") ⇒ "dir" + +Returns the directory part of the path. + +=head3 extension (filename) + +For example: + + extension ("dir/file.ext") ⇒ "ext" + +Returns the filename extension. + +=head3 join (list1, list2) + +For example: + + join (["a", "b"], ["c", "d"]) ⇒ ["a", "b", "c", "d"] + +Concatenate C and C. It's not usually necessary to use +this function since goals automatically flattens lists within lists +into simple lists in many cases. + =head3 sort (list) For example: