.------[ K Pfeiffer wrote (2002/10/29 at 22:39:04) ]------ | | Hi, | | I as trying the File::Spec module mentioned in Learning Perl and noticed | that it fails with a pathname like "~/perl_practice/myfile". I looked at | "perldoc -q tilde" and it does mention a general problem with this. I this | true with this module (or others) or did I just do something wrong? | `-------------------------------------------------
File::Spec isn't designed to handle tildes and it's not a special Perl operator. Tilde is Unix means 'home directory'. So the example was trying to say '/home/user/perl_practice/myfile' by using the '~/perl_practice/myfile' shortcut. You'll need to expand the ~ on your own if you want it to be useful. --------------------------------- Frank Wiles <[EMAIL PROTECTED]> http://frank.wiles.org --------------------------------- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]