[Mageia-dev] [soft-commits] [6435] Added a first log viewer module.
Angelo Naselli
anaselli at linux.it
Mon Nov 12 11:07:42 CET 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Guillaume,
Il 12/11/2012 09:44, Guillaume Rousse ha scritto:
> Le 11/11/2012 19:13, root at mageia.org a écrit :
>> +package LogViewer; + +use strict; +use POSIX;
> never load the POSIX module this way. Either import it without
> importing any symbol in your namespace, either import just the
> symbols you need. See POSIX(3pm) for details.
I thought it wasn't the right way, i just forgot to fix it.
This module is not completed yet, but feel free to work on it or
to any other module you want to port.
My basic idea was to show how an easy task like showing log could
work in qt, ncurses and gtk without changing the core code.
Again I'm not a perl developer and neither i'm pretending to be,
what i'm trying to, is porting some old programs to new layout,
but if that hurts someone's feeling i can stop working on it
and do some in c++ for what i need.
Funny from here:
> [..]
>> + $::isWizard = 1;
> ugly syntax.
>
> [..]
>> +#- check services +my ) . Data::Dumper->Dump([ $service ],
>> [qw(*services)]) . q( +foreach (split(':', $options{SERVICES}))
>> { + next unless $services{$_}; + $r .= "Service $_
>> ($services{$_} is not running)\\n" unless -e
>> "/var/lock/subsys/$_"; +}
> You shouldn't leave debugging statement in your code. Moreover, I
> doubt this is syntactically correct. Do you use Test::Compile to
> check your code compiles correctly ?
>
the above code is all from old logdrake, all commented and not
runnable, because i haven't imported yet :p
Cheers,
Angelo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlCgymsACgkQqEs9DA4DquDSBACggCiaEKouQ1s2wAFJHFmt1WBF
1joAoKFatBVmuK3ERVolx6B15XclNUtl
=qlDj
-----END PGP SIGNATURE-----
More information about the Mageia-dev
mailing list