Re: Syntax help with variable quotes

2006-07-31 Thread Grant
: open(LABEL,">/path/to/the/$file.gif"); This should be working. Perhaps $file does not have in it what you think it does. Since I/O operations should be checked for success anyway, try this. open LABEL, ">/path/to/the/$file.gif" or die qq(Cannot open "/path/to/the/$file.gif": $!); Yup

RE: Syntax help with variable quotes

2006-07-31 Thread Charles K. Clarkson
Grant wrote: : open(LABEL,">/path/to/the/$file.gif"); This should be working. Perhaps $file does not have in it what you think it does. Since I/O operations should be checked for success anyway, try this. open LABEL, ">/path/to/the/$file.gif" or die qq(Cannot open "/path/to/the/$file.gif

Re: Syntax help with variable quotes

2006-07-31 Thread Grant
> Can someone tell me how to turn this line (which works): > > open(LABEL,">/path/to/the/file.gif"); > > into something like this: > > open(LABEL,">/path/to/the/$file.gif"); > > The gif file should be named according to the value of the $file > variable. I never know what to do with quotes in the

Re: Syntax help with variable quotes

2006-07-31 Thread Prabu
Grant wrote: Can someone tell me how to turn this line (which works): open(LABEL,">/path/to/the/file.gif"); into something like this: open(LABEL,">/path/to/the/$file.gif"); The gif file should be named according to the value of the $file variable. I never know what to do with quotes in these

Syntax help with variable quotes

2006-07-31 Thread Grant
Can someone tell me how to turn this line (which works): open(LABEL,">/path/to/the/file.gif"); into something like this: open(LABEL,">/path/to/the/$file.gif"); The gif file should be named according to the value of the $file variable. I never know what to do with quotes in these situations.