chriso has asked for the wisdom of the Perl Monks concerning the following question:
In my script, I'm opening the files using the following code:
open (DESCDOC, "/usr/local/apache2/htdocs/crs_desc/$course_no . desc\. +txt") || &problem; my @descdoc = <DESCDOC>; close DESCDOC;
As you can see, I want to append to the course number the rest of the file name so it will access the appropriate file. I can't seem to get the proper syntax to open the file. I've tried numerous combinations of concantenations but nothing works. The problem sub just displays a message to let me know the file didn't open. How should I write the open command?
Thanks.
Chris
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Concantenation
by ajt (Prior) on May 05, 2003 at 17:53 UTC | |
by Aristotle (Chancellor) on May 05, 2003 at 18:48 UTC | |
|
Re: Concantenation
by jgallagher (Pilgrim) on May 05, 2003 at 17:41 UTC | |
|
Re: Concantenation
by artist (Parson) on May 05, 2003 at 17:40 UTC |