develooper Front page | perl.beginners | Postings from September 2009

search replace saved to a variable

Thread Next
From:
Noah Garrett Wallach
Date:
September 2, 2009 19:22
Subject:
search replace saved to a variable
Message ID:
4A9F2854.6060107@enabled.com
Hi there,

what is the way to collapse this search/replace to one line?

     my $filename_cmd = $cmd[-1];
     my $filename_cmd =~ s/\s/\./;


Cheers,

Noah

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