note
Eily
<p><blockquote>This might be considered dirty in a real Perl script but should be acceptable in a one-liner.</blockquote>100% agree with that sentence (which says a lot, since the sentence is "this might be").</p>
<p>You could use operator overloading to replicate that feature. <c>"Value" > file("path");</c> or <c>"Value" >> file("path")</c> where file returns an object that overloads > and >></p>
<p>Or you could do something closer to C++:
<c>fstream("path") << 120 << " in hexadecimal is " << ctrl::hex << 120;
fstream("logs", "a") << ctrl::autoline << "I'm adding this line to the logs" << "and also this line";</c></p>
11121090
11121104