On Thu, 2025-02-20 at 08:01 +0800, walt via beginners wrote: > > > > Something like: > > > > while (<*>) { > > rename $_, "$1$2.jpg" if $_ =~ /(.+) (.+)\.jpg/; > > } > > > > what does <*> mean here?
<*> iterates over the current directory and returns every filename in the directory to the $_ variable. The '*" can be any glob pattern. e.g. for the specific jpg files in the example, I could have used <*.jpg> -- Smoot Carl-Mitchell System/Network Architect voice: +1 480 922-7313 cell: +1 602 421-9005 sm...@tic.com -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/