Thursday, September 16, 2010

Perl File operations: Functions for file handling and interacting with system

chdir(EXPR): changes the working directory to EXPR, if EXPR is omitted then changes to home directory. refer to chdir in perl for more details.

chmod: changes the permission on a list of files.

glob:expand filenames using wild card

link: create a hard link in the system

lstat: stat a symbolic link

mkdir: makes a directory, similar to md dos command

opendir: opens a directory in code and gives directory handle.

readlink: determines where a symbolic link is pointing

rename: change a filename

unlink: deletes a file permanently

No comments:

Post a Comment