exilepanda has asked for the wisdom of the Perl Monks concerning the following question:
I am working on WinXP, and have questions about the link() function, as it has not much description on perldoc -f
First is a such case : I create "a.txt" I link "b.txt" via "a.txt"; now if I edit "b.txt", the content of "a.txt" changed too, vice versa
Then, I pick a "x.jpg" and then linked by "y.jpg". I edit either x.jpg or y.jpg, they wont sync like a-b.txt did.
Of cause, all testing files are on the same drive ( same dir too ).
Questions are :
1. Which one is the expected result ? Should the linked files content sync or not sync ?
2. Is link() only work on text file or binary, or both?
3. Is link() like other hard link, only work on the same drive ? Or it works on the same hard disk ? or all harddisk ? Or any valid path ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: about link()
by tobyink (Canon) on Feb 18, 2012 at 21:21 UTC | |
by exilepanda (Friar) on Feb 19, 2012 at 05:09 UTC | |
|
Re: about link()
by toolic (Bishop) on Feb 18, 2012 at 17:19 UTC | |
|
Re: about link()
by BrowserUk (Patriarch) on Feb 18, 2012 at 17:35 UTC | |
by exilepanda (Friar) on Feb 18, 2012 at 18:33 UTC | |
by BrowserUk (Patriarch) on Feb 18, 2012 at 19:37 UTC | |
by exilepanda (Friar) on Feb 18, 2012 at 19:50 UTC | |
by BrowserUk (Patriarch) on Feb 18, 2012 at 22:23 UTC | |
|