: 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
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
> 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
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
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.