Perforce maps files in the depot to a workspace using a view. The view is composed of single lines, each of which has a depot path and a workspace path (see Using Wildcards for some examples). You can also exclude files from the mapping by prepending a ‘-’ to the line.
Here are some handy excludes to use:
-//depot/…/Thumbs.db //marco-sten/…/Thumbs.db
-//depot/…/*.~* //marco-sten/…/*.~*
-//depot/…/*.dcu //marco-sten/…/*.dcu
-//depot/…/*.ddp //marco-sten/…/*.ddp
-//depot/…/*.bak //marco-sten/…/*.bak
-//depot/…/*.dsk //marco-sten/…/*.dsk
-//depot/…/*.dcr //marco-sten/…/*.dcr
This one is handy if you need to work with open-source libraries that have CVS junk littered all over the place. Replace CVS with SVN to prevent Perforce from seeing Subversion files.
-//depot/…/CVS/… //marco-sten/…/CVS/…
-//depot/…*.cvs* //marco-sten/…*.cvs*