Enabling autoflush is the same as setting $|=1. IO::Socket automatically sets autoflush mode on a created socket, so you shouldn't have to do it.
If you're pushing large amounts of data, perhaps it's useful to have this turned off to take advantage of IO buffering, but for most network tasks, it's good to leave this turned on.