getting online quotes

Dave Peticolas dave@krondo.com
21 Jan 2002 16:09:29 -0800


--=-JGpFc0rlO4cw+rPs+EKr
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Mon, 2002-01-21 at 01:33, David Overton wrote:
> +++ finance-quote-helper.orig	Mon Nov 26 20:54:46 2001
> @@ -223,11 +223,7 @@
>    }
> =20
>    $field =3D 'symbol';
> -  if (exists($$quotehash{$itemname, $field})) {
> -      $data =3D schemify_string($$quotehash{$itemname, $field});
> -  } else {
> -      $data =3D schemify_string($itemname);
> -  }
> +  $data =3D schemify_string($$quotehash{$itemname, $field});
>    $quotedata .=3D "($field . $data)";
> =20
>    $field =3D 'gnc:time-no-zone';
> @@ -283,7 +279,7 @@
>    # Make sure we have an opening ( preceeded only by whitespace.
>    # and followed by a one word method name composed of [a-z_]+.
>    # Kill off the whitespace if we do and grab the command.
> -  if($input !~ s/^\s*\(\s*$dq?([a-z_]+)$dq?\s+//o) { return 0; }
> +  if($input !~ s/^\s*\(\s*([a-z_]+)\s+//o) { return 0; }
> =20
>    my $quote_method_name =3D $1;
> =20

Can you explain what these changes are doing?
It's hard to parse long regular expressions,
at least it is for me :)

thanks,
dave


--=-JGpFc0rlO4cw+rPs+EKr
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA8TK255effKKCmfpIRAlLpAJ97dBbMvZS1CXpn8twbv2nUU3/c5gCffQuC
BiqMD3VrgYloLwewLa7cSgA=
=V0EY
-----END PGP SIGNATURE-----

--=-JGpFc0rlO4cw+rPs+EKr--