Hello there.
Im interested in solving my problem.
I have two files.
25 Feb 21 12:14 site_ver.php
PHP Code:
define('site_ver'328); 
33 Feb 21 12:15 trans_ver.php
PHP Code:
define('translations_ver'110); 
I have some script.
Its a begining of it and it not finished
scr.pl

PHP Code:
#!/usr/bin/perl
$sv="site_ver.php";
$tv="trans_ver.php";
open (SVIN$sv) || die "Can't open $sv";
while (<
SVIN>)
chomp; print;}
print 
"\n";
close (SVIN); 
I need to get numbers from that files and increment them and after that save files.

For exmpl, define('site_ver', 328); after modification this string should looks like define('site_ver', 329);
328 > 329

Can anyone help me with this problem ?