Hello,
I am inputing text from a file like so:
my $n = 1;
open INFO, '<stored.txt';
my @stuff = <INFO>;
foreach (@stuff){
print $stuff[$n];
if (n < 30) {
$n++
}
}
close INFO;
The problem is that the variable that I am reading from the text file has 12 preceding spaces, I was just wondering if...
Ok so what I want to do is to parse 1 line into 3 variables at 3 different points so here is what it looks like now:
my ($name, $value) = split /:/;
and here is what I want it to look like or do I guess:
my ($name, $value, $phone) = split /:/,/;
like I said its basically parsing one line at...
Hello
I just wanted to know how do you combine two variables:
for instance:
my $firstname="fred";
my $lastname="flintstone";
my $wholename=$firstname + $lastname;
print $wholename;
can someone give me and example of something that will do that.
Hi, ok so I run a program called vmquery.exe and it gives me this output:
============================================================
Media ID: SM1014
media type: DLT cartridge tape (11)
barcode: SM1014
description: ---
volume pool...
Hello,
I am a beginner with Perl and I was wondering how I could script with perl to read the output of file. In other words how can I parse the output from a dos application?
For instance I run...
C:\>status.exe
===============================
name=Jonny
value=10
status=10x2...
Hello,
I am a beginner with Perl and I was wondering how I could script with perl to read the output of file. In other words how can I parse the output from a dos application?
For instance I run...
C:\>status.exe
name=Jonny
value=10
status=10x2
C:\>
all I want to do it to pick out the number...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.