in reply to Re^2: Argument isn't numeric in numeric ge
in thread Argument isn't numeric in numeric ge

I added the [] chars around $version_on_disk and $version_dns to make sure no strange characters were coming on the variables. They print correctly on the terminal.
How can you detect a sound in brackets? Use Data::Dumper (plus $Data::Dumper::Useqq=1; as advised by jethro) or pipe your output to a hexdump.
Updated.

Replies are listed 'Best First'.
Re^4: Argument isn't numeric in numeric ge
by natxo (Scribe) on Dec 09, 2011 at 14:30 UTC
    ok:
    use Data::Dumper; print Dumper $version_on_disk, "disk"; print Dumper $version_dns, "dns";
    gives
    $VAR1 = '1195874'; $VAR2 = 'disk'; $VAR1 = '1195874'; $VAR2 = 'dns';
    Update: with $Data::Dumper::Useqq = 1 ; I see an extra char indeed:
    $VAR1 = 1195874; $VAR2 = "disk"; $VAR1 = "\a1195874"; $VAR2 = "dns";
    So now I have to figure out why it gets here and how to get rid of it. Thanks! (no votes left today, I'll appoint votes tomorrow)