Re: Syntax a little funny ....

2003-12-09 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > On 12/08/03 19:33 or thereabouts, John W. Krahn scribbled: > > [EMAIL PROTECTED] wrote: > > > If that is so, what is all that business with the curly braces ? > > > I thought curly braces are supposed to denote code sections ? > > > > Yes, exactly, the curly braces all

Re: Syntax a little funny ....

2003-12-08 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > I've just started trying to pick up a little perl. > I'm breezing through "Learning Perl" and reading the perl docs. > > Here is some syntax I found a little funny, and I was hoping somebody > could explain this too me: > > opendir(DIR, $some_dir) || die "can't opend

Re: Syntax a little funny ....

2003-12-08 Thread R. Joseph Newton
[EMAIL PROTECTED] wrote: > I've just started trying to pick up a little perl. > I'm breezing through "Learning Perl" and reading the perl docs. > > Here is some syntax I found a little funny, and I was hoping somebody > could explain this too me: > > opendir(DIR, $some_dir) || die "can't opendir $

Re: Syntax a little funny ....

2003-12-08 Thread Jeff Westman
James Edward Gray II <[EMAIL PROTECTED]> wrote: > On Dec 8, 2003, at 11:28 AM, Jeff Westman wrote: > > > [EMAIL PROTECTED] wrote: > > > >> Here is some syntax I found a little funny, and I was hoping somebody > >> could explain this too me: > >> > >> opendir(DIR, $some_dir) || die "can't opendir

Re: Syntax a little funny ....

2003-12-08 Thread James Edward Gray II
On Dec 8, 2003, at 11:28 AM, Jeff Westman wrote: [EMAIL PROTECTED] wrote: Here is some syntax I found a little funny, and I was hoping somebody could explain this too me: opendir(DIR, $some_dir) || die "can't opendir $some_dir: $!"; @dots = grep { /^\./ && -f "$some_dir/$_" } readdir(DIR); closed

Re: Syntax a little funny ....

2003-12-08 Thread Jeff Westman
[EMAIL PROTECTED] wrote: > I've just started trying to pick up a little perl. > I'm breezing through "Learning Perl" and reading the perl docs. Excellent book. Do more than just "breeze" through it. Study it thoroughly, it's probably the single best starting place to learn perl. > Here is some

Re: Syntax a little funny ....

2003-12-08 Thread Robert Brown
That is a a great description of what is going on, but I think his question centered on the &SYNTAX*, not the *SEMANTICS*. As a programmer from the "algebraic" school (FORTRAN, algol, pascal, C, Ada, etc.), he is unacustomed to seeing a function call without surrounding parens. The key concept he

Re: Syntax a little funny ....

2003-12-08 Thread James Edward Gray II
On Dec 8, 2003, at 10:52 AM, [EMAIL PROTECTED] wrote: I've just started trying to pick up a little perl. I'm breezing through "Learning Perl" and reading the perl docs. Here is some syntax I found a little funny, and I was hoping somebody could explain this too me: opendir(DIR, $some_dir) || die "