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

Yes. You don't need the is line if you aren't testing and you will need a $ before VMinst in the last line, of course.


🦛

Replies are listed 'Best First'.
Re^12: To read files from two dir
by pragovnj (Acolyte) on Apr 26, 2022 at 15:51 UTC
    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?

      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+)$/;