[vox-tech] quoting question in perl

Henry House vox-tech@lists.lugod.org
Thu, 20 Dec 2001 18:06:07 -0800


--0OAP2g/MAC+5xKAE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Dec 20, 2001 at 05:06:29PM -0800, Peter Jay Salzman wrote:
> if you have:
>=20
> system("rm $filename");
>=20
> and $filename =3D "a file", you get an error because you're trying to del=
ete
> two files, "a" and "file".
>=20
> what's the proper way of quoting $filename so that the shell sees the file
> "a file" and not the two non-existant files "a" and "file"?

Don't use system() with one arg. Read perlsec(1). It is good :-).

--=20
Henry House
The attached file is a digital signature. See <http://romana.hajhouse.org/p=
gp>
for information.  My OpenPGP key: <http://romana.hajhouse.org/hajhouse.asc>.

--0OAP2g/MAC+5xKAE
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE8IpkPKK1cAVjXujwRAhoHAKCmDs4ITvIXo9uNdZdBxneWZnLJ3wCfcpKR
hF78c8hmu6hS3lbEjUmTY98=
=vz81
-----END PGP SIGNATURE-----

--0OAP2g/MAC+5xKAE--