> Hi,
>
[quoted text clipped - 23 lines]
>
> my $file = 'Users/andrewbr/Desktop/google.html';
$file is a relative path. When you use "Run", the current directory
is '/' (inherited from BBEdit), so the relative path resolves
correctly to "/Users/andrewbr/Desktop/google.html". When you choose
"Run in Terminal", or run it manually, the current directory is the
directory the script lives in, so getstore() tries to store the
returned data in "(current directory)/Users/andrewbr/Desktop/
google.html" - probably not what you had in mind.
getprint() works because it's not trying to write to a non-existent
directory.
Easy fix - add a / to the beginning of $file to make it a fully-
qualified path.
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Andrew Brosnan - 09 Jul 2006 23:16 GMT
> > my $file = 'Users/andrewbr/Desktop/google.html';
> Easy fix - add a / to the beginning of $file to make it a fully-
> qualified path.
Ahh, that was a typo...thanks for proofreading me! :-) I thought I was
loosing it.
Andrew