Rename a file: Difference between revisions
Content added Content deleted
m (→Scala: correct header) |
(→{{header|Perl 6}}: add entry) |
||
Line 525: | Line 525: | ||
move (catfile rootdir, 'input.txt'), (catfile rootdir, 'output.txt'); |
move (catfile rootdir, 'input.txt'), (catfile rootdir, 'output.txt'); |
||
move (catfile rootdir, 'docs'), (catfile rootdir, 'mydocs');</lang> |
move (catfile rootdir, 'docs'), (catfile rootdir, 'mydocs');</lang> |
||
=={{header|Perl 6}}== |
|||
<lang perl6>rename 'input.txt', 'output.txt'; |
|||
rename 'docs', 'mydocs'; |
|||
rename '/input.txt', '/output.txt'; |
|||
rename '/docs', '/mydocs';</lang> |
|||
=={{header|PHP}}== |
=={{header|PHP}}== |