[Perl] using single quote (') in perl one liner

Gabor Szabo gabor at tracert.com
Wed Nov 20 03:09:14 PST 2002


On Wed, 20 Nov 2002, Offer Kaye wrote:

> Hi,
> I want to do:
> perl -ip -e 's/1'b1/VDD/' full_scan_chip.v
> 
> but can't, since the shell thinks the second ' closes the first, and
> returnes:
> Unmatched '.
> 
> Variations such as:
> perl -ip -e "s/1'b1/VDD/" full_scan_chip.v

perl -pi -e "s/1'b1/VDD/" full_scan_chip.v

Gabor





More information about the Perl mailing list