So a colleague asked to to help with a wee perl problem, and his code has the following line:
my @xml_files = <*.xml>
He says it gives him a list of XML files .... say what?
Can someone explain this to me? This is a whole new use of the diamond operator I've not come across before!
(His question was "how do I add text files to this list?"... answer: make 2 lists & join them.. )In reply to A bizarre way to get a list of filenames by kiz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |