If you are a seasoned programmer, I REALLY suggest looking at the perlsyn
man pages. There's probably a better place to find them than through google, but it gets you what you need for now. It sounds like you are mixing up what perl's core functions are and what's available on the command line.
If you aren't at all a seasoned (unseasoned?) programmer, I'd suggest finding the most relevant language about, learn the fundamentals of programming, such as loops, variables, data structures and what not.