storing symbolic link target into a variable
- From: aurel.t@xxxxxxxxxxxxx
- Date: 12 Mar 2006 11:36:42 -0800
Hello everyone!
Can someone let me know how to get target name of a symbolic link and
store it into a variable? For example
system( "readlink $link" );
only prints the target name. I would like to store the target name into
a variable, say $target, without printing it.
Ultimately I would like to have a procedure that copies a regular file
and one or more of its symbolic links, into another file and another
set of symbolic links pointing to the copy of the original file. In
other words a set of files should be copied so that their link
structure is preserved. Is there any high level function that can do
the job?
Regards,
Aurel.
.
- Follow-Ups:
- Re: storing symbolic link target into a variable
- From: Paul Lalli
- Re: storing symbolic link target into a variable
- Prev by Date: Perl Wallpapers
- Next by Date: Can't compile/install module XML::LibXML either via CPAN or compile
- Previous by thread: Perl Wallpapers
- Next by thread: Re: storing symbolic link target into a variable
- Index(es):
Relevant Pages
|