This might be considered dirty in a real Perl script but should be acceptable in a one-liner.100% agree with that sentence (which says a lot, since the sentence is "this might be").
You could use operator overloading to replicate that feature. "Value" > file("path"); or "Value" >> file("path") where file returns an object that overloads > and >>
Or you could do something closer to 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";
In reply to Re^3: Split tab-separated file into separate files, based on column name (open on demand)
by Eily
in thread Split tab-separated file into separate files, based on column name
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |