in reply to Re^11: To read files from two dir
in thread To read files from two dir

Hi,

A slight change. The VMs are numbered as 0 to 99 and not 00 to 99 as I wrongly assumed :( How to modify your code so that it can identify 0,1,2 ...99?

Replies are listed 'Best First'.
Re^13: To read files from two dir
by hippo (Archbishop) on Apr 26, 2022 at 15:58 UTC

    That's a very simple change. Have a read through perlre and see if you can work it out.


    🦛

      should I modify

      my ($digits) = $vmstr =~ /-(\d\d)$/; as my ($digits) = $vmstr =~ /-(\d+)$/;
        Hi,

        Is this the right way?

        my ($digits) = $vmstr =~ /-(\d+)$/;