4 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello there,
I'd like to define a variable b equal to 0.5/a where a=0.001, so I wrote something like that:
a=0.001;
let 'b=0.5/$a';
but it doesn't work... maybe because the variable a has a real value???
Any help will be appreciated!!!:D (1 Reply)
Discussion started by: Giordano Bruno
1 Replies
2. Programming
This might be a silly question, but I thought I'd ask anyway. If I'm writing in C, isn't it more efficient to, for instance, use constant character variable set to 'A' instead of hard-coding a character 'A'? Since it's only a single character instead of a string, it might not matter much. (10 Replies)
Discussion started by: cleopard
10 Replies
3. Shell Programming and Scripting
is it possible to use eval to create constants in perl? i cannot seem to get anything to work, and my searches are turning up little to nothing. an example of what i am trying to do is this:
2 arrays:
array 1: 'FOOD','NUMBER','OS'
array 2: 'pizza','two','unix'
loop through the arrays and... (5 Replies)
Discussion started by: effigy
5 Replies
4. Programming
Hi all
My question is related to following sample code which tries to change consant value by pointers.(I know it is wrong practice but i am surprised by mis-behaviour)
The code:
#include <stdio.h>
int main()
{
const int x = 10;
int *y;
const int * const z = &x;
y = (int *)&x;... (2 Replies)
Discussion started by: Shobhit
2 Replies
LEARN ABOUT OSX
locale::constants
Locale::Constants(3pm) Perl Programmers Reference Guide Locale::Constants(3pm)
NAME
Locale::Constants - constants for Locale codes
SYNOPSIS
use Locale::Constants;
$codeset = LOCALE_CODE_ALPHA_2;
DESCRIPTION
Locale::Constants defines symbols which are used in the four modules from the Locale-Codes distribution:
Locale::Language
Locale::Country
Locale::Currency
Locale::Script
Note: at the moment only Locale::Country and Locale::Script support more than one code set.
The symbols defined are used to specify which codes you want to be used:
LOCALE_CODE_ALPHA_2
LOCALE_CODE_ALPHA_3
LOCALE_CODE_NUMERIC
You shouldn't have to "use" this module directly yourself - it is used by the three Locale modules, which in turn export the symbols.
KNOWN BUGS AND LIMITATIONS
None at the moment.
SEE ALSO
Locale::Language
Codes for identification of languages.
Locale::Country
Codes for identification of countries.
Locale::Script
Codes for identification of scripts.
Locale::Currency
Codes for identification of currencies and funds.
AUTHOR
Neil Bowers <neil@bowers.com>
COPYRIGHT
Copyright (C) 2002-2004, Neil Bowers.
Copyright (C) 2001, Canon Research Centre Europe (CRE).
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.5 2012-11-03 Locale::Constants(3pm)