Re: error opening file with open function

2010-11-07 Thread Ron Bergin
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

Re: error opening file with open function

2010-11-07 Thread J M
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 >

Re: error opening file with open function

2010-11-07 Thread 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

Re: error opening file with open function

2010-11-07 Thread John W. Krahn
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

error opening file with open function

2010-11-07 Thread J M
-- 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

Re: error opening file with open function

2010-11-07 Thread shawn wilson
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

Re: error opening file with open function

2010-11-07 Thread J M
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

Re: error opening file with open function

2010-11-07 Thread J M
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

Re: error opening file with open function

2010-11-07 Thread shawn wilson
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

Re: error opening file with open function

2010-11-07 Thread Parag Kalra
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

error opening file with open function

2010-11-07 Thread J M
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

Re: open() function

2002-07-22 Thread Jean-Luc BEAUDET
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:

Re: Placing Variable in "Open" function

2002-06-11 Thread Janek Schleicher
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

Placing Variable in "Open" function

2002-06-11 Thread Michael Norris
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. __

RE: help with open open function

2001-12-10 Thread Wagner-David
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

Re: help with open open function

2001-12-10 Thread Agustin Rivera
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

help with open open function

2001-12-10 Thread Lance Prais
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

RE: help with open open function

2001-12-10 Thread Wagner-David
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