473,545 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Perl Forum

Perl programming language - ask questions about perl programming, syntax, variables, scoping, constructs, operators and functions, files, I/O, regular expressions, regex, subroutines, OO (object oriented), perl modules, CGI and more.
7
1,749
thread by: Roamer | last post Nov 13 '14 by: Roamer
Multiple records in rows Hi I have a partial solution working to show so many records in a row. How to make it work so only, say, 2 rows show - I don't know how to do. file.txt 01|Aaaa| 02|Bbbb| 03|Cccc|
15
13,345
thread by: JamRoll | last post Nov 3 '14 by: JamRoll
what's going on? text entered into an HTML textarea input: field1=1 field2=2 field3=3 this data gets stored in a text file:
1
2,407
thread by: ashwinrao | last post Nov 2 '14 by: numberwhun
I have a multiselect dropdown which has 8 colors in a hash %all_colors: my %all_colors = ( 1 => 'Red', 2 => 'Yellow', 3 => 'Orange', 4 => 'Blue', 5 => 'Black', 6 => 'Brown', 7 => 'Green',
1
1,403
thread by: narendra5296 | last post Nov 1 '14 by: RonB
Hi, I have problem with my perl code execution.i have wrote my code & i got exected in the old version perl5.8.2.As i am tryiing to do the same in the version perl5.16.3 im getting an error like the below, Win32 does not define $Win32::VERSION--version check failed at *** line 435. BEGIN failed--compilation aborted. Compilation failed in...
12
2,507
thread by: yjulien | last post Nov 1 '14 by: JamRoll
Hello, I have a new project. I created a Excel file that calculate Solar Power requirement base on someone location and electric consumption. It works nicely. Now I want to make a HTML model inspired from this file. The Insolation information would be stored in a separate file. The user will have to provide me with it's city for the...
1
2,972
thread by: gbox26 | last post Oct 22 '14 by: gbox26
there is a lot of errors in this perl. what causes and how can i fix them #!/usr/bin/perl use strict; use File::Path qw(make_path); use LWP::UserAgent; use File::Temp qw(tempfile tempdir); use Compress::Zlib qw(uncompress);
0
1,108
thread by: pritee | last post Sep 2 '14 by: pritee
#!/usr/bin/perl -w use strict; use warnings; use MIME::Lite; my $DirPath='filepath'; opendir (DIR, "$DirPath") or die "Cannot open $DirPath $!\n"; my $recent='find filepath -mtime -51 -type f';
2
1,381
thread by: virtualweb | last post Aug 22 '14 by: Luuk
Hi: I'm a novice regarding MySQL management with perl. I have read several online tutorials and managed so far to create a Table, insert a row, make some edits to specific items already saved in specific rows, display the last row entered, etc, in other words I feel I've done considerable progress. Now I'm converting an online auction...
1
1,397
thread by: Akino877 | last post Aug 20 '14 by: Rabbit
Hello, I read on the web that the regular expression /o{2,3}/ means that it would match if o repeats at least 2 times but not more than 3 times. But when I tested this RE with "halloooo", it returned a match. I wonder if someone could please help me understand why it returned a match when there was 4 occurences of o? Thank you, Akino
3
1,739
thread by: Harikumar143 | last post Aug 15 '14 by: Raj4perl
i gave input file and output file.can u tell me script.
10
1,262
thread by: Raj4perl | last post Aug 12 '14 by: Raj4perl
open(HNDL, "1.txt") or die "Cannot open text file"; while (<HNDL>) { if($.==2) { print $_; $_ =~ s/\s//g; print "after removing spaces $. :",$_; }
8
2,952
thread by: siva12venu | last post Aug 11 '14 by: Raj4perl
How to open vlc player using perl script Requirement:: open vlc player press (CTRL + "n") //It opens network stream enter url // In network stream page u have enter any url click play button in //network stream wait for 20 seconds close the vlc player
0
884
thread by: girijaJ | last post Aug 6 '14 by: girijaJ
Hi all, I have Cygwin installed and running on Windows machine. I can connect to and send certain commands like "ls","pwd". But when I try to change the directory I am gettign an exception. Here is my code: use strict; use warnings; use Net::OpenSSH; my $host = 'host'; my $username = 'user';
1
1,179
thread by: rumiya | last post Aug 2 '14 by: Luuk
I have two columns in my excel sheet one is for gene id and other for the length of the gene. now I need to find out the largest length of among various transcript id of the same geneid. and need to display the distinct geneid with largest length in perl language.
6
1,907
thread by: kam5438mak | last post Jul 23 '14 by: sathishkumar se
I have a long string from which I would like to separate words and the next numbers and store them in arrays if possible String = aa12ab123ac34ad23ae321ca21cb234za123zb12zd12 text usually is 2 characters long but the digits vary in length 2-4 digits I would like to store them as alpha=aa number=12 alpha=ab number=123
1
1,229
thread by: jyothiakki | last post Jul 2 '14 by: RonB
Hi all, I have a main script MAIN.pl I want to call all my five subscripts : SUBSCRIPT1.pl SUBSCRIPT2.pl SUBSCRIPT3.pl SUBSCRIPT4.pl SUBSCRIPT5.pl to may main script MAIN.pl . All this script will have a return value like true or false . depending on this input " if all the subscripts pass then we have to print pass to the...
11
28,479
thread by: patelxxx | last post Jun 22 '14 by: manageknowledge
When I running the following .cgi script, not sure why each print statement is not printing on a new line, even after entering \n. Browser=IE6 See Perl code below: #!C:/perl/bin/perl.exe -w print "Content-type:text/html\n\n"; use CGI qw(:standard);
1
2,068
thread by: einstein | last post May 19 '14 by: miller
my $data = $cell->value(); This is how I parse in perl and then get the cell value. if the cell value is a blank , I want to skip that cell and move further. but its not excuting once it finds a blank cell. please help
1
1,197
thread by: vimalvimal | last post May 19 '14 by: miller
You can see the above two stings, that $string_2 contents are available in $string_1 but the only difference is tags (ie: <a> or <sup>). I want to match $string_2 in $string_1 and have to create/copy what are the tags inside in $string_1 matching area to the $string_2 contents. Kindly anybody give any idea to solve this Thanks Vimal
1
1,129
thread by: einstein | last post Apr 26 '14 by: Luuk
Hi, My access database is having a alsmost 20 tables inserted and each table having numerous columns. I want to fetch only certain columns from a table and then compare them using perl. I am able to compare the columns in excel but I dont want to export and compare I want to access the database only. Any ideas.
4
2,868
thread by: einstein | last post Apr 25 '14 by: Rabbit
Hi, I'm new to perl. I want to compare two excel sheets the second excel file is just the revised version of the first one. There are only two columns each file with a certain number of Rows The following code is just printing all the values in it use strict; use warnings;
1
1,357
thread by: sai prudvi | last post Mar 7 '14 by: sai prudvi
hi I am new to Perl and HTML . I have written a back end script in Perl using send expect statements, for loops and subroutines. In the Perl script i am logging in to the server and sending some commands and expecting server prompt and finally exit .Now i am trying to bring it to front end using HTML. I am using CGI as a framework to achieve...
2
1,302
thread by: Gopinath | last post Feb 28 '14 by: miller
i have shell file which will execute set commands to activate the mesh interface in my CRB board. in my perl file i tried to execute using system(location of file); but am not getting correct output but it is returning true... my code $mesh_base="/mnt/jffs2/conf/mesh_start"; system($mesh_base);
3
1,369
thread by: guru151 | last post Feb 20 '14 by: Luk3r
Hi All, I want to extract only meaningful information from below string . please help me out. String : .z.X.g 10.22.27.4 .....[.U.[ SLhJg7Se ...A120 .b...A.N.e.B.u...............^.C...A.E.g.........B
2
1,340
thread by: jaydip650 | last post Feb 19 '14 by: RonB
i dont want to use spreadsheet::parse module?i want to insert bulk data directly to mysql table in bulk

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.