Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by jonnymp316

  1. jonnymp316

    Removing Preceding Spaces

    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...
  2. jonnymp316

    Three Variable Split

    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...
  3. jonnymp316

    Combining Variables

    Hello I just wanted to know how do you combine two variables: for instance: my $firstname=&quot;fred&quot;; my $lastname=&quot;flintstone&quot;; my $wholename=$firstname + $lastname; print $wholename; can someone give me and example of something that will do that.
  4. jonnymp316

    Parsing Binary Output

    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...
  5. jonnymp316

    Parse part II

    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...
  6. jonnymp316

    Parsing With Perl

    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...

Part and Inventory Search

Back
Top