[Chicago-talk] scalar question
richard at rushlogistics.com
Mon Jan 31 13:40:25 PST 2011
I know I should no this, but I don't and was wondering if someone could enlighten me. I have some scalars that represent filenames and look like this
I can get everything before the "-" like this:
$fl2=~s/\-.*//; # get the root of the filename
but how can I do it without changing the contents of the original scalar? I'd like to put the result directly in a new scalar.
$root_name= $f12=~s/\-.*//; # get the root of the filename
Rush Logistics, Inc.
Watch our 3 minute movie:
More information about the Chicago-talk