![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Run shell program in perl | s123.radha | Shell Programming and Scripting | 5 | 04-21-2008 10:39 AM |
| Invoke perl program from Ksh | mahalakshmi | Shell Programming and Scripting | 10 | 12-19-2006 08:46 AM |
| How to know the program 'perl' is installed ? | zp523444 | UNIX for Dummies Questions & Answers | 3 | 12-13-2005 07:06 PM |
| runnig a perl program from a different dir.. | sekar sundaram | Shell Programming and Scripting | 3 | 11-13-2005 05:05 AM |
| My crap PERL program | WIntellect | Shell Programming and Scripting | 9 | 10-29-2002 06:56 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
perl program question
why does below program not work? <> is producing nothing.. still waiting for input.. but i thought this would work? Code:
#!/usr/bin/perl -w
use strict;
my @array2;
my @array1 = ("David Veterinarian 56", "Jackie Ass 34", "Karen Veterinarian 28");
$_ = @array1;
while (<>) {
push(@array2,$&) if m/^\w+(?=\s+Vet)/;
}
|
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|