Cross thread posted at
http://forums.devshed.com/perl-programming-6/error-opening-csv-file-with-open-function-761095.html
J M wrote:
> I was able to figure it out. Here is the update (probably not final) code
> for anyone interested:
>
>
> [code]
> #! /usr/bin/perl
> #
> u
d of $dbh->prepare() and $dbh->excecute().
> I'll post updated code when that is done.
>
>
>
>
> On Sun, Nov 7, 2010 at 8:58 PM, John W. Krahn wrote:
>
>> J M wrote:
>>
>>> -- Forwarded message --
>>> From: J M
>
7, 2010 at 8:27 PM
>> Subject: Re: error opening file with open function
>> To: shawn wilson
>>
>>
>> shawn,
>>
>> I pretty sure it's not a permissions thing but here you go:
>>
>> [code]
>> (jmd...@darkstar)-(0)-(07:23 PM Sun No
J M wrote:
-- Forwarded message --
From: J M
Date: Sun, Nov 7, 2010 at 8:27 PM
Subject: Re: error opening file with open function
To: shawn wilson
shawn,
I pretty sure it's not a permissions thing but here you go:
[code]
(jmd...@darkstar)-(0)-(07:23 PM Sun N
-- Forwarded message --
From: J M
Date: Sun, Nov 7, 2010 at 8:27 PM
Subject: Re: error opening file with open function
To: shawn wilson
shawn,
I pretty sure it's not a permissions thing but here you go:
[code]
(jmd...@darkstar)-(0)-(07:23 PM Sun Nov 07)->
(~/global_s
Do an 'ls -l' and a 'whoami' and post the result. Also post the error your
program gives.
On Nov 7, 2010 9:19 PM, "J M" wrote:
> I did hardcode the name in the first version of the script... in two
forms:
> 'file.txt' and '/home/path/to/myfile/file.txt'. Neither made any
difference.
>
> Thank you
I did hardcode the name in the first version of the script... in two forms:
'file.txt' and '/home/path/to/myfile/file.txt'. Neither made any difference.
Thank you for assisting!
On Sun, Nov 7, 2010 at 8:12 PM, Parag Kalra wrote:
> Instead of taking the file as an input parameter, try to parse t
On Sun, Nov 7, 2010 at 8:13 PM, shawn wilson wrote:
> Use strict and warnings. Probably should also use parentheses:
> open(CSV, "< $file")
> On Nov 7, 2010 9:01 PM, "J M" wrote:
> > Hi all,
> >
> > I'm having great issues with my program at the moment... it is supposed
> to
> > take a csv file
Use strict and warnings. Probably should also use parentheses:
open(CSV, "< $file")
On Nov 7, 2010 9:01 PM, "J M" wrote:
> Hi all,
>
> I'm having great issues with my program at the moment... it is supposed to
> take a csv file and parse it, with the output being stored in a MySQL
> database. The
Instead of taking the file as an input parameter, try to parse the file by
hard coding its name in the script and let us know the outcome.
Cheers,
Parag
On Sun, Nov 7, 2010 at 6:00 PM, J M wrote:
> Hi all,
>
> I'm having great issues with my program at the moment... it is supposed to
> take a
Hi all,
I'm having great issues with my program at the moment... it is supposed to
take a csv file and parse it, with the output being stored in a MySQL
database. The problem I'm having is that the file I need to parse
('ish_history.csv') will not open in the program for some reason. I know the
fi
Daniel David a Ýcrit :
> Hi ,
>
> how do you open a file - starting at a particular line?
> eg to start reading the file from line 500 ?
>
> thanks for your help.
>
> _
> MSN Photos is the easiest way to share and print your photos:
Michael Norris wrote at Tue, 11 Jun 2002 22:30:25 +0200:
> I'm trying to place a variable in the spot of an argument when exectuting a command
>with "open."
> Here's what I'm trying to do.
>
> open(COMMAND,"home/usr/usrname command $argument|");
> while ()
> print "$_"; #print outpu
I'm trying to place a variable in the spot of an argument when exectuting a command
with "open." Here's what I'm trying to do.
open(COMMAND,"home/usr/usrname command $argument|");
while ()
print "$_"; #print output
It's not accepting the $argument variable i'm putting in.
__
2001 15:41
To: Lance Prais; [EMAIL PROTECTED]
Subject: Re: help with open open function
Well, besides escaping the periods, you also have it backwards. It should
be
open(Workflow, "workflow.txt") || die $!;
Unless someone knows something I don't..but I couldn't get it to wo
om
- Original Message -
From: "Lance Prais" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 5:20 PM
Subject: help with open open function
> I am using the following statement to open a document.
>
> open("..\..\workflow.txt&quo
I am using the following statement to open a document.
open("..\..\workflow.txt", "Workflow")|| die "Cannot open Workflow $!\n";
1. the perl.exe resides in e:\perl\bin\perl.exe
2. the workflow.txt reside is e:
3. the error I am getting is "Cannot open workflow No Such file or
directory"
What am
ember 10, 2001 17:21
To: [EMAIL PROTECTED]
Subject: help with open open function
I am using the following statement to open a document.
open("..\..\workflow.txt", "Workflow")|| die "Cannot open Workflow $!\n";
1. the perl.exe resides in e:\perl\bin\perl.exe
2. the wor
18 matches
Mail list logo