in reply to Code generation. Printing out regular expressions
Use single quotes in your print statement:
print '$line =~ s/^\s+|#//; #trim leading spaces and comment hash',"\n +"; print '$line =~ s/\s+$|\///; #trim trailing spaces and forward slash', +"\n";
You can use say to avoid the "\n" at the end...
...roboticus
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Code generation. Printing out regular expressions
by Anonymous Monk on Jan 14, 2010 at 22:31 UTC |