Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^12: To read files from two dir

by pragovnj (Acolyte)
on Apr 26, 2022 at 15:51 UTC ( [id://11143313]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11143313]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-26 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found