Perl Home
PERL Functions
© 2011 TutorialsPoint.COM
|
PERL readlink Function
Syntax
Definition and Usage
Returns the pathname of the file pointed to by the link EXPR, or $_ if EXPR is not specified.
Return Value
Example
Try out following example:
#!/usr/bin/perl -w
# assume /tmp/test is a symbolic link on /tmp/usr/test.pl
readlink "/tmp/test";
|
It will produce following results:
|

|
|
|