kamesh3183 has asked for the wisdom of the Perl Monks concerning the following question:
If I remove the space before file mode operator its working fine even from command prompt. can anybody tell me whats happening.I use active state perl 5.005_03 built for MSWIN32-x86#!/usr/bin/perl use strict; use warnings; use diagnostics; my $dc_db_file = 'c:/double_click.db'; if (!open(DC_DB, " > $dc_db_file")) { die "Cannot open $dc_db_file for + writing:$!\n"; } close DC_DB;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with command prompt execution
by japhy (Canon) on Mar 17, 2005 at 06:41 UTC |