checking if a file exists

2001-11-22 Thread Greg . Froese
How would I check if a certain file exists in a certain directory? I'm already using File::Find to process a bunch of mp3's, and before I move/copy them to a different folder, I want to check if the file already exists. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

directories

2001-11-21 Thread Greg . Froese
what is the best way to check for the existence of a directory? (windows/Linux) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Off-Topic (200%) - Where are you from?

2001-11-09 Thread Greg . Froese
Winnipeg, MB, Canada -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Using DBD

2001-11-02 Thread Greg . Froese
I'm writing a cgi script that connects to an access DB in windows using DBD::ODBC. the program works great from the command line, but when I try to run it from the browser, this is what I get DBI->connect(mycddb) failed: [Microsoft][ODBC Driver Manager] Data source name not found and no defau

find placement of one string in another

2001-10-30 Thread Greg . Froese
How do I find where one string is in another? if i have $test = "one day I went to the zoo"; and I want to find how many characters into $test the word "went" is, how do I go about that? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: No such file or directory exists

2001-10-24 Thread Greg . Froese
elementary? oooh, that hurts =) but you are right, I should have been using -w Peter Scott <[EMAIL PROTECTED]> 10/24/2001 10:03 AM To: [EMAIL PROTECTED], [EMAIL PROTECTED] cc: Subject:Re: No such file or directory exists At 09:01 AM 10/24/2001 -0500, [

Re: accessing environment variables

2001-10-19 Thread Greg . Froese
Thanks Brian and Marcus. $^O is exactly what I needed. _brian_d_foy <[EMAIL PROTECTED]> 10/19/2001 08:44 AM To: [EMAIL PROTECTED] cc: Subject:Re: accessing environment variables In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Greg F

accessing environment variables

2001-10-19 Thread Greg . Froese
How do I access Windows environment vars? I want to be able to test whether I'm in Windows or Linux, and this seems like a good way to do it. If there is an easier/better way, I'm all ears. Thanks Greg

Inserting records into database

2001-10-05 Thread Greg . Froese
I'm using Win32::ODBC and trying to insert a record into an access database. This is the error I'm getting. SQL failed. Error: [-3035] [1] [0] "[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query." and this is the code I'm using #Opening database if (!($db = new

Connecting to an Access/MySQL database

2001-10-03 Thread Greg . Froese
what module(s) would I need to connect to an access database? and if I code an app that uses an access database, can that be easily changed to MySQL or whatever just by changing the connect string? TIA Greg

Reusing same output line

2001-09-26 Thread Greg . Froese
Is it possible when writing to the console with print to continue using the same line rather than have each message appear after the previous one? Anyone is familiar with ncftp knows that the program shows the up/download status updating on the same line. I'm curious if the same thing is poss

arrays

2001-09-25 Thread Greg . Froese
are there multi-dimensional arrays in perl?

parsing strings

2001-09-25 Thread Greg . Froese
Hi, I've been programming for a number of years, but I'm VERY new to Perl, and it looks like a lot of fun. However, I'm very much in the learning stage, so please be patient, I'm still learning all the keywords etc... I'm curious how I can parse part of one variable into another ex: $part1 =