Search Results

Search: Posts Made By: ncl
15,791
Posted By ncl
The following has finally worked for me now ...
The following has finally worked for me now
open FH,"file.txt";
my $voxelValue;
while(<FH>) { $voxelValue = $2 if /(VOXELVALUESMAX=)(.*)/; }
close FH;
print "$voxelValue\n";

thanks a lot...
15,791
Posted By ncl
thank you all for your replies but am still...
thank you all for your replies but am still facing some issues
1. am trying to write it within code itself so for some reason whenever I use the single line bit of code from ahmad.diab and...
15,791
Posted By ncl
Perl:Read single value from text file and assign to variable
Hello All,

A part of my very basic perl code requires me to read a single value from a text file.

The file output is the following:

Reading image ... done
IMAGEREGION=0x0x0-256x162x256...
Showing results 1 to 3 of 3

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