X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=docs%2FGoalfile.pod;fp=docs%2FGoalfile.pod;h=75ae4fce405777f85cf5ebdf0b80e53d6f02e77a;hb=9607fb2d34d679e14040f9132625a53f1de5200a;hp=9731cb1c8c3393de0f370409fcc6963e3bb9713d;hpb=333e7443bbcb0dc07b113d70b9d52cdabfef5ae9;p=goals.git diff --git a/docs/Goalfile.pod b/docs/Goalfile.pod index 9731cb1..75ae4fc 100644 --- a/docs/Goalfile.pod +++ b/docs/Goalfile.pod @@ -14,6 +14,30 @@ 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 sort (list) For example: