Sifmole asked:
Why the angle brackets tye?
As you've probably noticed, I'm not tye. I hope you won't be so thoroughly dissappointed as to disregard my comments ;)
tye wrote the following:
system('cp',<source/*>,'dest/.') and die
The angle brackets are what are known as a "filename globbing operator". Want all text files from the current directory?
my @test_files = <*.txt>;
However, if you want to use this with variables, it's better to use the glob operator:
my @files = glob( $foo );
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats. |