profiles.ini contents :
-----------------------
[General]
StartWithLastProfile=1
[Profile0]
Name=default
IsRelative=1
Path=1qgw7vpm.default
------------------------
Code :
------
#!/usr/bin/perl -w
#
#
$PATH="/home/mina/.mozilla/firefox/profiles.ini";
open(INFILE,"$PATH") || die "Problems: $!";
@array=<INFILE>;
foreach(@array){
if (/Path/){
$profile=$_ + 2;
print "$Profile\n";
}
}
-----------------------------------------------
Error i got :
-------------
Argument "Path=1qgw7vpm.default\n" isn't numeric in addition (+) at testProfile.pl line 11, <INFILE> line 8.
Use of uninitialized value in concatenation (.) or string at testProfile.pl line 12, <INFILE> line 8.