1

Extract values from Perl variable

view story
linux-howto

http://www.unix.com – Hi Guys, I am stuck in a problem. I have a variable in Perl script which has value for example X=a-b-c; Now, I want to extract a b c separately into different 3 variables. I know this can be done in shell using awk but Perl behaves a bit different. Can anybody help me on this please? Thanks in advance, Prashant (HowTos)