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
Set site as read only to everyone
MAGENTO ENTERPRISE: Need to make static link in category menu (always display throughout layers)
Error message when replying, sending, openning email in OWA
exiting users from database
Is BO XI and BO edge BI 3.1 the same product?
Is there a user_packages table synonymous to the user_tables table?
Can't access variable in code behind page
Powerpoint 2007 installs Acrobat standard 8 everytime it opens \ also asks for Office key sometimes
How can I check for an install new updates for Symantec Backup Exec? I have clicked on the Help drop down menu, but don't see any options for updates
Displaying DD/MM/YYYY from Mysql Timestamp