I did this in Perl, but how do you the same in python?
Example:
my %lineBuffer; #with a "%" sign
$linebuffer; #to call it indiviadually
This is what im thinking about doing in python.
linebuffer[ ]
to use a scalar I would do?
lineBuffer[result.group(1)]
Yes, Python has them, though it calls them “dictionaries”; see §5.8 “Mapping Types —
dict” in the Python v2.7.2 documentation.