slur = God!
Thanks and sorry - I should have been more clear. I was wondering how you would do this for just a plain old perl script that runs "locally" - you know, from the users ~/bin directory. I'm learning perl and for my own learning purposes I am writing a script to edit my .xinitrc file and switch window managers used by XDarwin. I doubt anyone else would want to use this (it's probably just as quick to edit the file manually!), but I was wondering how I could make it more generic - run for anyone who put it in their ~/bin directory.
For example - this works:
open (XINIT, '/Users/dean/.xinitrctest') || die ("Could not open ~/.xinitrctest");
but this:
open (XINIT, '~/.xinitrctest') || die ("Could not open ~/.xinitrctest");
causes this:
[localhost:~] dean% wmpik.pl
Could not open ~/.xinitrctest at /Users/dean/bin/wmpik.pl line 33.
[localhost:~] dean%
I'll save your post for when I get into the whole cgi thing (soon I hope), but for now I am just having fun manipulating text on my own files. Thanks!