1,633 Topics
| |
HI peeps, I have a general question about scripting. what's the best scripting to learn (I would like to learn one language) and do you have any link to any good resource, not just a tutorial but somewhere I can see what scripting can do (sorry I am really new … | |
Hello, I found a PERL script in my root directory (public_html) and I have no idea who uploaded it and how. I know this itself is a concern to me but what I really need to know is what this script can do in worst case scenario. It was on … | |
source.txt Name|Address Ram|USA Geeta|India I want to read this file into hash or map The coulum headers should be stored as keys, and when i call the key it should say me Ram and whn i call Address as key it should say USA Please let me know how can … | |
Dear expert - I try to use the code as below to get the website htm source and it works. However, I cannot get the result when I visit the website [url]http://reserve.apple.com/WebObjects/ProductReservation.woa/wa/reserveProduct[/url] by using code as below. But, I can access this page by using browser properly. Would you give … | |
Hi, Can you please suggest me to how to execute .profile from perl script. I have following unix script steps & just wanted replicate them in perl script to make sure I'm executing .profile. . ~/.profile echo $SHELL | |
I have a exe file named file.exe When it is run through command line, it takes some data and process it and creates an output file. I want to feed data to file.exe within a perl script and want the output file. Please let me know the commands to do … | |
Hi I am trying to convert .qual and .fna file to fastq using the script provided here. http://seqanswers.com/forums/showthread.php?t=2775&highlight=fasta+qual+fastq The code is as follows: #!/usr/bin/perl use warnings; use strict; use Data::Dumper; use File::Basename; my $inFasta = $ARGV[0]; my $baseName = basename($inFasta, qw/Reads.fna/); my $inQual = $baseName . "/Users/myfolder/Reads.qual"; my $outFastq = … | |
I am trying to learn how to fetch hyperlinks using perl for an input list of names with ids. Here is what I have come up with so far. Am I heading in the right direction? Any simple ways to get hyperlinks using perl without the HTML table? #!/usr/bin/perl use … | |
Hi, I was reading about Python and spotted "it has high signal-to-noise ratio" bit. In general, what does it really mean? I read some stuff about it but no particular explanation for programming. Tahnsk | |
Hi, I need help to make a perl program work. I have two files - file 1 and file 2. The contents of File2 is to be searched with the contents of file 1. File2: 2 tab-delimited columns XM:1120002 complex-solution MM:0999111 blue-green solution UX:1020022 activity unknown, (simple/complex?) File1:(one column of … | |
Hello guys, I'm trying to find a way of sending MT messages to subscribers from my perl script. My shortcode is 1111(EXAMPLE), and I have three messages I want to send. Obviously, when a user sends a message to my shortcode, they receive a first response; ButI need them to … | |
Hi all, I'd like to know if it is possible to create a perl script that would take the names of image files with its extension of say 10,000 images from out of a folder and place them into a database table in separate rows to use as sample data? … | |
Trying to convert the following block of perl to python for($row = 0, $mytype = 500; $row < $filearray_count; $row++) { if ($_ eq $filearray[$row][0]) { $mytype = $filearray[$row][1]; print "$row, $mytype, $_ \n"; break; And here is the python attempt. I'm not sure if I'm dealing with $mytype = … | |
Okay pardon me for this silly question (I am learning perl!) but how do we run a perl file that has many sub functions. For example, if a file called thisismyfile.pl has following sub functions sub thisismyfunction1 sub thisismyfunction2 where sub thisismyfunction1 will output table 1 and sub thisismyfunction2 will … | |
I am attempting to remove 3 commas from the file below but it is not working. #!/usr/bin/perl use strict; use warnings; my @data; my @line; open(FH, "error_log"); @data = foreach $line (@data) { if ($line =~ /notice/) { if ($line =~ /rdy/) { $line =~ s/ /,/g; my @L1 = … | |
I would like to first thank those who originally replied to my first article. I have the script modified so it's pulling all the needed data and I finished my work very fast! There was a lot of new syntaxes that I didn't know and took tutorials on each to … | |
How to handle characters like ü, Ö etc. I tried using decode_utf8() function. But still when I print the string I get some funny characters instead of ü or Ö | |
Hello! It's been a great while since I last used DaniWeb and have come back with a quandry in hopes I can get some guru support on... My perl is very beginner. I used to code in ++ so I know the general rule of programming; however, I do not … | |
I want to execute Perl script through VB6.0 . Please help . I also want to access the database from Perl Script . | |
Hello, I have a file inputfile abc pqr ghi lmn xyz How do I extract certain line in using perl? For example: I want rows pqr, ghi, lmn. I want to assign line numbers and extract these rows..so for pqr, ghi and lmn I will use lines 2, 3 and … | |
One of the finest initiative was the full documentation bundled with every version of Perl Programming language. Using the plain old documentation (*pod*) utility called *perldoc* one can literally read or learn the programming language without another book. E.g perldoc perl gives you the Name of the perl language Interpreter, … | |
Hi, I would like to the code below to search the contents of file1 in file2 and then output results arranged according to file1 contents. At the moment the code outputs are according to the order of elemnts in file2. I need some help to get this code working as … | |
I have two files: File1: M1U152S44906X14127_xu M1U7S112336U117688_xu File2 (tab delimited): T1X19S17508N179711_xu AAU_779 M1U152S44906X14127_xu xcup M1U7S112336U117688_xu mmna I want to search the content of File 2 using the content of File 1 and then display the output as follows: Date of search: The following matches were found in File 1: T1X19S17508N179711_xu … | |
Hi, I have one perl script for comparing two text file entries. But its not working according to my expectation. Its comparing line by line, not like comparing one entry to the complete file. I like the script to be compare all the entries irrespective of line by line comparison. … | |
I am new in Perl and generally in programming. I face some real problems here. I need a Perl script that can open a text file, read a series of URLs, get the content of the pages and save it to another file. Thanks deeply for any guidance. | |
Hello! how can i sync or replicate my 2 db's on localhost xampp on windows. I want to replicate themselves as customer order something on my site and i am able to update his order and criteria as aearly as possible and also for security purpose. That if incase any … | |
| How can you get an `if` statement in another `if`, for instance: $line = <STDIN>; if $line eq "\n") { print "You did not type anything } else { print "You said: $line"; } Could you put another` if `next to the place where it says: You said: blah like … |
Suppose I need to have a regex expression (using Perl regex) that, say, matches a*b\q as simple text and does not interpret a* as any number of a's. I know it is simple here, but I need it to work for ANY string of characters. | |
Hİ; I want you guys to prepare a script. I will attach output.txt file. ıt should check BSC and BCF name which are in INPUT.txt and SITE.txt. After comparing , ıt should come out a SITE column in the OUTPUT.txt and there will be site names under of that column. … |
The End.