Jim and Rob,
Thanks to both of you for your responses and for the code you supplied.
That was a big help. I was able to get it to work and I've pasted my code
below.
> No. It is just a one-level hash.
I'm glad you both pointed this out. It appears that I was over
thinking i
On 03/08/2011 20:30, Rob Dixon wrote:
Because the values of the array elements are simple strings, as I
explained above, you must find a way of splitting them into
individual fields. The simple way would be to use the 'split' operator
to divide the line at whitespace, but the presence of spaces
On 03/08/2011 19:12, Marc wrote:
>
> I'm trying to sort a shopping cart basket on the item numbers. The
> basket is stored in a hash. There is a hashref called
> %{$main::global->{cart}} that Data::Dumper prints out like so:
>
> $VAR1 = {
>'1' => '1 1 SL-8206
On 8/3/11 Wed Aug 3, 2011 11:12 AM, "Marc"
scribbled:
> I'm trying to sort a shopping cart basket on the item numbers. The basket is
> stored in a hash. There is a hashref called %{$main::global->{cart}} that
> Data::Dumper prints out like so:
>
> $VAR1 = {
> '1' => '1 1 SL-8206
I'm trying to sort a shopping cart basket on the item numbers. The
basket is stored in a hash. There is a hashref called
%{$main::global->{cart}} that Data::Dumper prints out like so:
$VAR1 = {
'1' => '1 1 SL-8206
73.15