Assign global variable to stored procedure variables

How can i assign output of following global variable to other variable in stored procedure?

SHOW GLOBAL VARIABLES LIKE ‘innodb_buffer_pool_size’
(mysql 5.0)

Seemingly we cant assign that!!
I was trying to do this.