473,538 Members | 2,665 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
42,639
thread by: deep022in | last post Dec 17 '07 by: numberwhun
guys, I have written a perl script using Win32::OLe module. I was able to read it completly. but I have to specify the number of rows in excel sheet as command line option. I want to know how to retrieve number of rows of the excel sheet and number of columns also. i tried to retrieve the properties using the each methode. see below
4
45,984
thread by: Rich | last post Jul 19 '05 by: Rich
I am trying to replace the word "test" in a file with the word "Change" without creating a new file using the following code: #! /usr/bin/perl -w open (IN, "+</path/to/file/test.html"); while (<IN>){ s/test/Change/; print IN;
2
47,144
thread by: gfs X | last post Jul 19 '05 by: gfs X
Hi, Im a complete noob to perl. Is there a way to convert array values into a string? For example @myarr=("Sample","test","Array"); My desired output: "SampletestArray" To then work with as a string. I know I could just specify piece by piece but thats just too much and
1
47,366
KevinADC
thread by: KevinADC | last post Dec 4 '08 by: KevinADC
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or...
7
55,076
numberwhun
thread by: numberwhun | last post Jan 10 '08 by: numberwhun
**NOTE: This article is written using the 5.8.8 Alpha2 release of Strawberry Perl. I am writing this article with much joy and glee. This is due to the fact that Active State no longer has a monopoly on the issue of Perl on the Windows platform As anyone who code's Perl on the Windows platform knows, the choice that you have (had) for Perl...
3
55,653
thread by: asearle | last post May 22 '07 by: shantu
Hallo everyone, I have a perl script which can return error codes. I have done this with, for example, 'exit 11;', which would (I imagine) send the exit code 11 (instead of 0) back to the calling program. I would now like to check that my error codes are being returned correctly and so wanted to write a short script to test this. Here I...
2
101,947
thread by: Natti | last post Feb 17 '07 by: KevinADC
On execution of #!/usr/bin/perl $val = 4; for ($i=0;$i<=$val;$i++) { print "$i\n"; sleep(1); } the output is 0
1
120,123
thread by: Jeremy Morton | last post Jul 19 '05 by: Big and Blue
Probably been mentioned before but I fail to see why Perl changed the 'break' keyword to 'last', in loops. Bear with me on this - it seems semantically more accurate to say 'break' - you're immediately breaking out of the loop. 'last' makes it sound like the current loop will be the last, but not that the execution should be stopped...

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.