Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Clean some Safari cookies via a Perl script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Clean some Safari cookies via a Perl script
Authored by: rammjet on Feb 11, '09 05:40:17AM
You don't need to include your user name in the script - as long as you are only modifying your own cookies. The shell knows who you are and stores your user directory in the variable $HOME. It also allows the script to be more portable between users.
change this:  my $path = "/Users/$userName/Library/Cookies/Cookies.plist";
to this:      my $path = "$HOME/Library/Cookies/Cookies.plist";


[ Reply to This | # ]