Re: newbie syntax error - Perl 4 - Perl 5.6.1

2002-08-02 Thread Felix Geerinckx

on Thu, 01 Aug 2002 22:10:41 GMT, [EMAIL PROTECTED] (Robert
Larmon) wrote: 

 Okay, so I'm a total Perl newbie.  I have an old script (that I 
 unfortunately inherited) that I'd like to convert to Perl 5.  I
 copied it over, and I get a syntax error.  I went to perl.org,
 perl.com, etc., but can't find anything that describes the
 differences between 4 and 5. 
 [...]
 syntax error at appl_request.c line 8, near *,
 syntax error at appl_request.c line 20, near char   last

 [c-code snipped]


It's a c program, not a Perl 4 script.

-- 
felix

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




RE: newbie syntax error - Perl 4 - Perl 5.6.1

2002-08-02 Thread Timothy Johnson

 
Ummm...Are you sure that isn't C?

-Original Message-
From: Robert Larmon
To: [EMAIL PROTECTED]
Sent: 8/1/02 3:10 PM
Subject: newbie syntax error - Perl 4 - Perl 5.6.1

Okay, so I'm a total Perl newbie.  I have an old script (that I 
unfortunately inherited) that I'd like to convert to Perl 5.  I copied 
it over, and I get a syntax error.  I went to perl.org, perl.com, etc., 
but can't find anything that describes the differences between 4 and 5. 
  I feel like I'm shooting in the dark, and conceptually I'm just trying

to understand the code.  Anyone have a link?  Anyways, here's a snippet 
that doesn't work...

syntax error at appl_request.c line 8, near *,
syntax error at appl_request.c line 20, near char   last


#include stdio.h
#include stdlib.h
#include string.h
#include time.h

int main()
{
   char * fDecodeUrl(char *, char *);

   char   buffer[5000];
   char   apalsa[10] = {0};
   char   blsa[10] = {0};
   char   gllu[10] = {0};
   char   laRaza[10] = {0};
   char   wla[10] = {0};
   char   sba[10] = {0};
   char   prefix[10] = {0};
   char   first[100] = {0};
   char   middle[100] = {0};
   char   last[100] = {0};
   char   addr1[100] = {0};
   char   addr2[100] = {0};


Is there a way to debug this?

Thanks,

Robert


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

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