develooper Front page | perl.beginners | Postings from December 2002

Expanding a variable

Thread Next
From:
Bob H
Date:
December 20, 2002 16:56
Subject:
Expanding a variable
Message ID:
001401c2a88b$efe02580$a4203118@home5j8ddwdscw
If I have a variable that I used to a regex to populate how can I now
expand that variable?
 
Ex:
 
I have a variable $file that I use a regex to match a file in a
directory and put that match into $file. Now I want to get that info out
of the $file variable and use it in a system() call.
 
Bob

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About