#!/usr/bin/perl -w use strict; my $date = '11/29/2001'; print "DATE (before): $date\n"; $date =~ s/\//\\\//g; print "DATE (after): $date\n";
Output:
$ ./slash.pl
DATE (before): 11/29/2001
DATE (after): 11\/29\/2001
Jason
In reply to Re: Escape from backslash hell
by Purdy
in thread Escape from backslash hell
by Static
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |