Search Results

Search: Posts Made By: dsw
9,649
Posted By pludi
One way to construct this: %hash = map { $a =...
One way to construct this:
%hash = map { $a = '1G' if /768/ .. /1536/; $a = '2G' if /1537/ .. /2560/; $_ => $a }
768 .. 2560;
9,649
Posted By radoulov
Could I suggest a different approach? perl...
Could I suggest a different approach?

perl -le'

$val = shift;

@ranges = (
[768, 1536, "1G"],
[1537, 2560, "2G"]
);

for (@ranges) {
print $_->[2] and...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy