Re: Syntax of Perl

2023-10-10 Thread Olivier
I am not sure about ruby, but if we want to be chronologically correct,
it's python that has a syntax that may look like Perl.

Olivier
-- 

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




Re: Syntax of Perl

2023-10-09 Thread wesley
I would say perl syntax is similar to ruby and scalar.
https://tech.postno.de/archives/113

regards.



> 
> The syntax of Perl have similarity with Python.
> 
> -- 
> 
> With kindest regards, William.
> 
> ⢀⣴⠾⠻⢶⣦⠀ 
> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org https://www.debian.org/ 
> ⠈⠳⣄
>

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




Re: How to Implement a BNF syntax in perl?

2004-02-07 Thread wolf blaum
For Quality purpouses, Balaji Thoguluva 's mail on Friday 06 February 2004 
18:49 may have been monitored or recorded as:

 Hi,

Hi
 I have a long BNF (Backus-naur form) for parsing a protocol message.
 Suppose I want to implement a BNF like this

 Response = Status-line
*(message-header)
CRLF
[Message-body]

 status-Line = SIP-Version SP Status-Code SP Reason-Phrase CRLF
 SP = space character
 ..
 .

 Like this I have a very long BNF. How can I implement this BNF and 
 parse a message that satisfies this BNF in perl ? Any suggestions would be
 of great help to me.

Maybe Config::Natural is good to you.

Wolf


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




How to Implement a BNF syntax in perl?

2004-02-06 Thread Balaji Thoguluva
Hi,
 
I have a long BNF (Backus-naur form) for parsing a protocol message. Suppose I 
want to implement a BNF like this
 
Response = Status-line
   *(message-header)
   CRLF
   [Message-body]
 
status-Line = SIP-Version SP Status-Code SP Reason-Phrase CRLF
SP = space character
..
.
 
Like this I have a very long BNF. How can I implement this BNF and  parse a 
message that satisfies this BNF in perl ?
Any suggestions would be of great help to me. 
 
Thanks,
Balaji 

Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.

Re: How to Implement a BNF syntax in perl?

2004-02-06 Thread Randy W. Sims
On 02/06/04 12:49, Balaji Thoguluva wrote:
Hi,
 
I have a long BNF (Backus-naur form) for parsing a protocol message. Suppose I want to implement a BNF like this
 
Response = Status-line
   *(message-header)
   CRLF
   [Message-body]
 
status-Line = SIP-Version SP Status-Code SP Reason-Phrase CRLF
SP = space character
..
.
 
Like this I have a very long BNF. How can I implement this BNF and  parse a message that satisfies this BNF in perl ?
Any suggestions would be of great help to me. 
Have you looked at Parse::RecDescent:
http://search.cpan.org/dist/Parse-RecDescent/
Randy.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response



newbie syntax error - Perl 4 - Perl 5.6.1

2002-08-02 Thread Robert Larmon

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]




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]