![]() Why are some applications compressed? reduce their sze When using a Web search engine, what special character can you use to include other keywords that you would expect to find in relevant documents? When using the CentOS 7 System Information tool, what element can be clicked to review the mounted drives? storage When using the Firefox browser, what privacy setting can be managed to tell Web sites you do not want your Web browsing followed? tracking When you choose to allow your Edge browser to save protected media licenses on your device, you are essentially allowing your browser the ability to access protected media. pl What type of software automatically follows hyperlinks from one document to the next around the Web? bot When a Firefox user wishes to clear specific or all their browser's cookies, which button should they use under the "Use custom settings for history"? show cookies When a user goes to install a new application, they may have to uncompress the application first. The problem is only with the serial read.What type of cookies are deleted when you close your browser? session What type of file extension can be used by scripts written using ActivePerl?. Also, the variable $Package is defined in an earlier part of the code, which has nothing to do with the serial read. PS: the line $L = is without the dollar sign before COM, I had to write it here with the dollar sign, becuase without it, nothing was shown. Please bear in mind, that using any modules is out of question. ![]() I've been searching the internet up and down and didn't find any answer to why the script is not working. The data is being sent correctly, this was checked with putty and also a python script, the while condition is satisfied, but I never get any output in the console nor in the output file. I tried sending various data for reading, but the script always hangs on that line. The serial port is opened and the program runs until reaching the line "$L = ", where it hangs for eternity. Open COM,$ComPort or die "Cannot open COMport\n" The script was written probably in the early 2000's. A perl script was provided for this, and because of the nature and requirements of the project, I must use this specific perl script. Currently I am working on a project, where I need to read data from a serial port. I am new to perl programming, but not to programming in general. #$dbh->do("INSERT INTO test_kanavm (name, city) VALUES ( 'One', 'Two')") My $password = $dbh = DBI->connect($dsn, $user, $password) #my $dsn = "'dbi:ODBC:DRIVER= Server=zneusu0n27se002 Database=Sentinel" (SQL-28000) at lineĬould someone help to identify the error.Ĭode sample below. But the same DSN doesnt work in perl.ĭBI connect('Sentinel','sentinel'.) failed: [ODBC SQL Server Drive Having issues in DB connection to SQL server ODBCx32 DSN setup properly and it connects. The application is a classic ASP web hosted on iis 8.5. Rename ("SMED 0987_1532 Howard St", "1532 Howard St SMED 0987") || die ("Failed to rename folder name") #this works fine Rename (smed100, smed200) || die ("Error in renaming with direct name of folder") #this works ok Rename($oldfolder, $newfolder) || die("Error in renaming") #this one does not work? Print "the old name is : " new name is: = " $oldfolder\n" $newfolder = "$foldername $foldername\n" ($foldername,$foldername) = ($foldername, $foldername) #split the = split ( /_/, = split ( /_/, $dir) $Smedword = substr($dir,0,4) #Extract the the first of directory starting with the word "SMED" #Change directory and list "directories only # We will decide on our naming convention and style when this Perl script is workingĭie "No such directory exists, $dir\n" unless (-d $dir) #use this script to rename folders to make it consistent naming style Running on windows 7 and using 32 bit Activestate perl. If you put the directories name directly in the function it works but if you put a variable it fails.Īny ideas on how to fix this. I have a small perl script that I want to use to rename directories / folders in a certain way.
0 Comments
Leave a Reply. |