> From: Joey Mitchell Comeau [mailto:aw096@chebucto.ns.ca] > Sent: Monday, May 01, 2000 05:05 > To: Rosler, Larry > Cc: fwp@technofile.org > Subject: RE: [FWP] binary to ascii to binary ... > Is it possible to put a variable in a regular expression? > i.e. > s/$this/$that/ ? (I know this one itself won't work because $ is > the end of the line char,) Why not? Did you try it? Hint: $ in those 'double-quotish' environments signals interpolation. The $ is the end-of-the-line character when there is no other possible interpretation. -- Larry Rosler Hewlett-Packard Laboratories http://www.hpl.hp.com/personal/Larry_Rosler/ lr@hpl.hp.com ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe