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

Getting a variable back

Thread Next
Bob H
December 16, 2002 13:47
Getting a variable back
Message ID:
I have a program that gets an EXE file using a regex pattern and puts it
into a file variable:
foreach(@list) {
    if(m/\d{8}.*x86.exe/) {
I then download the matching file:
if(scalar(@match)) {
    print "Downloaded file $file\n";
I now want to run the downloaded EXE with some command line switches. I
have tried it with system but it doesn't seem to like using the variable
$file plus switches so I was wondering about how to get the filename out
of the $file variable. If that makes sense.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About