about link()by exilepanda (Monk)
|on Feb 18, 2012 at 16:51 UTC||Need Help??|
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 ?