![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Perl question regarding [ ] | hankooknara | Shell Programming and Scripting | 2 | 07-01-2007 04:21 PM |
| Perl Question | serm | Shell Programming and Scripting | 2 | 09-28-2006 05:50 AM |
| perl question | BG_JrAdmin | Shell Programming and Scripting | 1 | 09-09-2005 07:46 PM |
| Perl Question | Gary Dunn | Shell Programming and Scripting | 2 | 12-03-2004 12:37 PM |
| Perl question | Jubba | Shell Programming and Scripting | 1 | 04-01-2002 02:24 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
PERL question
Could someone tell me what is wrong with these PERL statements
it is always setting the $status2 to the number inside of the brackets......why???????? if (/^Status:/) { $stat = $Fld[2]; print "\$stat is $stat\n"; } the above is where i'm searching for a string inside of a file if($stat == 'Sent') { $status2=2; } print "\$status2 is $status2\n"; if($stat == 'Send') { $status2=1; } print "\$status2 is $status2\n"; |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|