Microsoft
Software
Hardware
Network
Question : perl regex replace
I read in a file in perl into a string using
my $file= do { local $/; <INFILE> };
the file contains the following and I need to replace what is in VarFNC("neednewdatahere").
How can I make a regex to do this?
function thisismyfunction()
{
myVar= new VarFNC("thisisthedata");
myVar.startLog();
Answer : perl regex replace
Perhaps like this:
1:
$file =~ s/VarFNC\("[^"]+"\)/VarFNC("neednewdatahere")/g;
Random Solutions
Install IIS with a vbs script.If supporting files needed pick from a predefined path.
Joomla Checkbox Array (need expert!)
New ESXi 4 Host (not responding) in vCenter
Get path of cfc file
XP install without access to CD drive
Does Crystal Reports 11.5 run on Windows 7 64 bit
Ethernet Network Connection Disables itself After Reboot (BOOTCAMP)
Asterisk 1.4 assigning outbound routes based on extension
Size of integer in embedded
VBScript Replace Function & the £ symbol?