Steve Doerr wrote:
> 
> Greetings!  Could someone here offer a tip about declaring a file
> variable that is itself part variable?
> 
> I can't seem to find an example of this online and I hope someone here
> could help.
> 
> I'd like to put a path variable in the declaration, but can't seem to
> get it to work.
> 
> What would the proper syntax for this be?
> 
> $file="$form->{path}tbdump.csv";

my $file = $form->{path} . 'tbdump.csv';

> open(tbdump, ">$file");

open TBDUMP, ">$file" or die "Cannot open $file: $!";

> print tbdump "Check that it writes the file.\n";

print TBDUMP "Check that it writes the file.\n";

> close(tbdump);

close TBDUMP;



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to