http://www.perlmonks.org?node_id=1172894


in reply to Re: Declaring and checking content of variables with consecutive names
in thread Declaring and checking content of variables with consecutive names

If you read data fields from an instrument into arrays periodically (for example, data obtained with a digital oscilloscope every second) wouldn't it make sense to give the arrays consecutive names such as @arr0000, @arr0001, (..), @arr0234, (...)? Similarly, if you save these data to disc, the name of the array would become the corresponding file name. We do this all the time (but we don't use Perl in this context).