Keedi Kim wrote: > I watched Dr. Damian Conway's speech on OSCON 2008 movie clip. > And I saw unfamiliar syntax. > > I know quoted words... > > my @list = qw<word1 word2 word3 ... >; > > and I know @ARGV or filehandle with diamond operator... > > my @lines = <$fh>; > my $one_line = <>; > > But this expression is very suprising... > > my @list = <word1 word2 word3 word4>; > > Would anybody please explain about that syntax > or give me an reference link to study?
This has nothing to do with the diamond operator. Damian has simply chosen <> as his delimeters. Read about it at perldoc perlop in the section "Quote and Quote-like Operators", where it says > Non-bracketing delimiters use the same character fore and aft, but the four > sorts of brackets (round, angle, square, curly) will all nest. HTH, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/