- or download this
//File Snippet Begin//
...
.
//File Snippet End//
- or download this
$vars{myVarA}->{type} = "float"
$vars{myVarA}->{value} = 0.5
...
$vars{myVarA}->{ui}->{max}=1
$vars{myVarA}->{ui}->{step}=0.001
$vars{myVarA}->{ui}->{widget}="slider"
- or download this
#after dumping file to string
$file_str=~ s/(float|float2|float3|float4|string)\s+/$+\#/g;
$file_str =~ s/\s*//g;
- or download this
$file_str=~s/\<.*(string|float|float2|float3|float4).*\>//g;
- or download this
@lines = split/(float|float2|float3|float4)\#\<.*\>=.*\;/,$file_str;