vi and perl
Feb. 13th, 2003 04:45 pmI really like weird-looking computer commands.
Here's one I use frequently in vi:
:%s/\\/\//g
And, in Perl, this is fun, and very useful:
$0 =~ s!^.*/!!;
Anyone who writes a lot of perl scripts in vi will probably recognize both of these immediately.
Here's one I use frequently in vi:
:%s/\\/\//g
And, in Perl, this is fun, and very useful:
$0 =~ s!^.*/!!;
Anyone who writes a lot of perl scripts in vi will probably recognize both of these immediately.