1832961 Members
3404 Online
110048 Solutions
New Discussion

Variable with %%

 
Eduardo_63
Advisor

Variable with %%

Hi friend,

I've a script :

$shmmax_REQD=%19%;


if ( $shmmax > 0 )
{
$shmmax = $shmmax / 1024;
if ( $shmmax < $shmmax_REQD )
{
print "shmmax_TooSmall \n";
$paramOk="false";
}
}

What means the value %% in the value of shmmax_REQD ?

Thanks,

4 REPLIES 4
Rodney Hills
Honored Contributor

Re: Variable with %%

Is this a csh, ksh, perl, or what?

Syntactically it's not total neither of them.

Rod Hills
There be dragons...
Stuart Browne
Honored Contributor

Re: Variable with %%

It looks perl or php to me..

but it looks as if it's a token marker to be replaced by something else. In no scripting language that I know is a value allowed to have %'s like that.
One long-haired git at your service...
Bharat Katkar
Honored Contributor

Re: Variable with %%

To my knowledge % % is used to define environmental varible on windows.
Regards,
You need to know a lot to actually know how little you know
Ralph Grothe
Honored Contributor

Re: Variable with %%

It doesn't look like valid Perl to me.
A leading % would designate a hash.
Besides for most programming languages a variable name with a leading digit (like 19) isn't a valid one.
Looks to me rather like some positional parameter (maybe of an arglist) or a macro placeholder of some arcane language.
Madness, thy name is system administration