Trying to understand Perl
From: Patrick (psmith_at_marine.usf.edu)
Date: 11/30/04
- Next message: mothra: "Re: can't install DBD::mysql - missing mysql.h?"
- Previous message: Uri Guttman: "Re: perl trim function"
- Next in thread: Paul Lalli: "Re: Trying to understand Perl"
- Reply: Paul Lalli: "Re: Trying to understand Perl"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Nov 2004 14:39:49 -0500
Hello good people,
I am trying to understand Perl and why things work. Could someone break
down for me the snippet of code below and tell me exactly how the
operation works. I guess I am mostly confused about the placement/order
of elements of the code and how Perl interprets it. Oh and exactly how
does $_ work. I think if I could get a better understanding of the how
and why it might clear up my confusion. Thanks, Patrick
(grep {$newfile eq $_} @files)
-- Patrick A. Smith Web Administrator Ocean Circulation Group – USF - College of Marine Science http://ocg6.marine.usf.edu Phone: 727 553-3334 The trouble with doing something right the first time is that nobody appreciates how difficult it was. - La Rochefoucauld
- Next message: mothra: "Re: can't install DBD::mysql - missing mysql.h?"
- Previous message: Uri Guttman: "Re: perl trim function"
- Next in thread: Paul Lalli: "Re: Trying to understand Perl"
- Reply: Paul Lalli: "Re: Trying to understand Perl"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|