- or download this
> echo 'JHTML `Java in here` code' | perl -p -e 's/`(.*)`/<%=$1%>/go'
>
> JHTML <%=Java in here%> code
- or download this
> echo 'JHTML `Java in here` code' | ./myReplace.pl '`(.*)`' '<%=$1%>'
>
> About to replace: s/`(.*)`/<%=$1%>/go
> JHTML <%=$1%> code
- or download this
#!/usr/bin/perl -w
...
}
exit;