Timeline for Printing specific section of a line when a trigger value is present
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 1, 2015 at 17:04 | comment | added | Joseph R. | @Peter.O There is no "auto-printing" in Perl. Perl has two modes for working on a file record-by-record: -n (no printing) and -p (printing); so it's always explicitly specified. | |
| Jun 1, 2015 at 15:39 | comment | added | Peter.O | This works, but with a minor catch: When there is a prop1=your_value but no prop2=, it prints a blank line... Nice explanation btw ... I've got pretty minimal working knowledge of perl, but I think that another feature of -n is that it inhibits auto-printing. | |
| Aug 3, 2014 at 0:45 | history | edited | Joseph R. | CC BY-SA 3.0 | added 1242 characters in body |
| Aug 3, 2014 at 0:37 | history | answered | Joseph R. | CC BY-SA 3.0 |