Search Results

Search: Posts Made By: smarty86
11,424
Posted By itkamaraj
$ perl a.pl A,B,C, D,E,F, G,H $ cat a.pl...
$ perl a.pl
A,B,C, D,E,F, G,H

$ cat a.pl
#!/bin/perl -w
$var="A,B,C,D,E,F,G,H";
@splitArray=split(/,/,$var);
for($i=0;$i<=scalar(@splitArray);$i=$i+3)
{
if ($i==0) {next;}
...
16,749
Posted By pravin27
How about this ? #!/usr/bin/perl ...
How about this ?


#!/usr/bin/perl
$col1_limit=15;
$col2_limit=30;
$j=0;
while (<DATA>) {
chomp;
($title,$desc)=split;
if (length($title) <=15) { printf...
16,749
Posted By birei
Hi smarty86, Somthing like: printf...
Hi smarty86,

Somthing like:

printf MY_FILE "%-50s | %-30s\n", $title, $desc
70,948
Posted By durden_tyler
Here's a Perl program that takes care of the...
Here's a Perl program that takes care of the requirement to exclude weekends while determining the difference between two dates.


$
$
$ cat -n timediff.pl
1 #perl -w
2 use...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 08:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy