Hi, I have a newbie whitespace question. Say I have a regular variable that has a string in it with something like " text". I just want to reassign the variable to the text inside the double quotes above. or, given the snippet... my $var=""; while ( <FILE> ) { if ( /^Kilobytes:(.*)$/ ) { $var = $1 ; } } This will set $var to " 3452" for example, I want to strip out the whitespace to only get "3452". Any thoughts appreciated, -Nat
- RE: newbie whitespace question Nat Durbin
- RE: newbie whitespace question Wagner-David
- RE: newbie whitespace question Aaron Craig
- RE: newbie whitespace question Aaron Craig