I'm trying to use file path for my file that I want to read but I am getting 
the following error when trying to use strict.

Can't use string ("C://temp//PCMD") as a symbol ref while "strict refs" in use 
at ./DOband.pl line 10.

Any help is greatly appreciated.

#!/usr/bin/perl

use warnings;
use strict;

my $filepath = "C://temp//PCMD";
my $outfile  = "output.txt";


open ("$filepath") || die "ERROR: opening $filepath\n";
open (OUTFILE, "> $outfile") || die "ERROR: opening $outfile\n";



Chris Stinemetz

Reply via email to