M
Markus Hutmacher
Hello,
in a recent thread in this group I found the following line of code:
($id) = $input =~ /^([^\t]+)\t/;
I understand that ($id) means that $id is used in list-context which
means that the part of $input which matches [^\t]+ is assigned to $id.
I understand as well that the same line of code without the list-context
will assign a 0 or 1 to $id depending on "matches" or "matches not".
But I don't understand to which part of the code the list-context refers.
In other words: what is the list in the expression
$input =~ /^([^\t]+)\t/
Thanks in advance
in a recent thread in this group I found the following line of code:
($id) = $input =~ /^([^\t]+)\t/;
I understand that ($id) means that $id is used in list-context which
means that the part of $input which matches [^\t]+ is assigned to $id.
I understand as well that the same line of code without the list-context
will assign a 0 or 1 to $id depending on "matches" or "matches not".
But I don't understand to which part of the code the list-context refers.
In other words: what is the list in the expression
$input =~ /^([^\t]+)\t/
Thanks in advance