# Replace array inside a function

I have the following problem. I want to replace an array inside a function

x = Norm[list[[All,2]]]/Depth[list] /. list -> slist


The result should be like this

x = Norm[slist[[All,2]]]/Depth[slist]


Any suggestions?

-
Does f[list_] := Norm[list[[All,2]]]/Depth[list] do what you want? –  ssch Nov 8 '13 at 15:29
Or x = With[{list = slist}, Norm[list[[All, 2]]]/Depth[list]] –  Pickett Nov 8 '13 at 15:33