Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^2: Exploring the color palette

by pbeckingham (Parson)
on Nov 18, 2005 at 15:53 UTC ( #509840=note: print w/replies, xml ) Need Help??

in reply to Re: Exploring the color palette
in thread Exploring the color palette

Yes, I am aware of Term::ANSIColor, but I don't use it for two reasons - firstly, the module is not available, and secondly, I want to iterate through the possibilities and show up the terminal deficiencies. Fixing problems with color use is not always easy, and having those escape sequences helps me.

pbeckingham - typist, perishable vertebrate.

Replies are listed 'Best First'.
Re^3: Exploring the color palette
by Aristotle (Chancellor) on Nov 18, 2005 at 15:55 UTC

    Fair enough, even though I can never fathom why people mention “it’s not installed” for pure-Perl modules.

    Makeshifts last the longest.

      Oh, I can help you there. I write Perl code for a living, and that code operates in two different environments. In a Company-internal environment, I use Perl 5.8.5, and all the modules I want. I use a variety of modules, and would generally prefer to use a module than write the code myself, provided said module isn't junk. I imagine you have similar experiences, but that's not my point.

      The problem lies in the other environment - a highly controlled production environment, servicing tens of millions of customers. I cannot simply place new modules in that environment - I have to get all the code certified before release. Even harder than getting a module out there, is updating Perl itself, as that would necessarily trigger a full-scale regression of all existing deployed code, not to mention the re-certification of Perl itself. No one has that kind of budget, and so I necessarily work with an old version of Perl, and a limited set of modules. There are further restrictions, but I won't go into those.

      Our production environments have a tendency to operate on the "if it ain't broke" mentality, and even though I don't like it, I understand it.

      pbeckingham - typist, perishable vertebrate.
      Not everyone has permissions to install CPAN modules on the machine they're working on.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://509840]
[Corion]: But yes, "who started this process" is interesting information :)
[tye]: no, I really believe that "login user" was added as a fundamental bit of info about each process in order to enhance the usefulness of auditing
[Corion]: Ah - if that information is saved in a file, then you could theoretically spam that file and confuse getlogin(). So, don't use it for authentication :)
[tye]: that is what getlogin() certainly *used* to do. I don't believe that is what it certainly should do.
[davido]: /var/run/utmp is 664 i think.
[tye]: Note that my "man getlogin" says that it uses stdin when it should use /dev/tty (calling a glibc bug). But that does not appear to be the case when I test it. But maybe Perl's getlogin() is not using glibc's getlogin().
[oiskuu]: well, run a strace and see what the getlogin does for you.... As I said. SELinux probably has those security labels. But not regular linux.
[tye]: for example, read https://unix. questions/146138/ loginuid-should-be -allowed-to-change -or-not-mutable-or -not
[tye]: I'm not using SELinux and it certainly appears to disagree with you. shrug
[tye]: Since you brought up /proc, oiskuu, I didn't see you respond to my suggestion of 'loginuid'. Does your /proc not have such?

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-06-23 19:46 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (554 votes). Check out past polls.