![]() |
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 |
| Newbi - Understanding the Code and proper download | mpinto | UNIX for Dummies Questions & Answers | 2 | 12-24-2008 10:48 AM |
| am a newbie to unix. plz help in understanding this code. | gokulj | UNIX for Dummies Questions & Answers | 1 | 12-23-2008 05:29 AM |
| Little Trouble Understanding some code... | NycUnxer | UNIX for Dummies Questions & Answers | 2 | 10-31-2007 09:20 AM |
| how i prepare a c++ code(c code) for implementing my own protocol format | amitpansuria | High Level Programming | 1 | 09-06-2007 11:09 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
Need help in understanding thisperl code.
Can any body explains the under given lines of code i have difficulties in understanding it,
my $errorlog = "/var/log/controler.log"; &initLanguage($language); &launchCbox(); sub launchCbox { $scr = Term::ScreenColor->new; $scr->clrscr(); my ($mode) = @_; my $error = 0; my $cbox_x = $dog_x + 3; my $args; my %box_args = %{$args[3]}; $args .= "-d " if $box_args{"debug"}; $args .= "-l " if $box_args{"log"}; $args .= "-L ".$box_args{"language"} if $box_args{"language"}; if($mode ne "restart") { $scr->at($y_pos,3)->puts($x.". ".$txth->getText("5016")); } else { $y_pos = $dog_y_pos+3; $scr->at($dog_y_pos+3,3)->puts($cbox_x.". ".$txth->getText("5016"." "x($status_bar_pos-(length($txth->getText("5016"))+7)))); } if(!$xwindow) { `perl ./cbox.pl 2>>/var/log/cbox.log $args > /dev/tty9`; } else { `perl ./cbox.pl 2>>/var/log/cbox.log $args > /dev/pts/2`; } $error ? &printNOK : &printOK; } Kindest Regards, Raheel. |
| Sponsored Links | ||
|
|