keywords.txt
Code:
keyword\d
\d\d\d
p\w{7}\d
Code:
my $keyword_or = join '|', map {chomp;qr/$_/} <$keywords>;
Using \Q will escape all special characters that follow, which may not be what you want if you...
keyword\d
\d\d\d
p\w{7}\d
my $keyword_or = join '|', map {chomp;qr/$_/} <$keywords>;
system("start \"C:\\Documents and Settings\\mybatchfile.bat\"");
my $total = $number3**2+$number2**2+$number1**2; print "$total\n"; push @totals,$total;
$res=exec("notepad.exe");
for (my $j = "100"; $j <= "110"; $j += 1){
for(my $i = "100"; $i <= $j; $i += 1){
if(isPalindrome($i*$j)){
print STDOUT ($i*$j)." Is a product of two three-digit
%dbase = {
apple => "fruit",
brinjal => "vegetable" ,
coffee => "beverage",
};
$myfile =~ /<b>(.*)<\/b>/xg
$myfile =~ /<b>(.*?)<\/b>/xg
foreach $file(@line)
{
chomp $r; #remove newline
$r="#$file#\n"; #add newline
print(OUT "$r");
}
my $h_dir = '$homedir/$f/Analyst-$1/Projects/$1/Project Information';
use strict;
use warnings;
my %A;
my @order=qw(horse mule tiger lion);
while (<DATA>) {
warn("Line $.: cannot understand: $_") , next unless /(\w+);(\w+)/;
my ($row, $col) = ($1,$2);
$A {$row}{$col}++;
use Spreadsheet::WriteExcel;
$workbook = Spreadsheet::WriteExcel->new('perl.xls');
$worksheet = $workbook->add_worksheet();
my $telnet = new Net::Telnet ( Timeout=>10,Errmode=>'die',Input_log => 'input.txt, Output_log=>
print "\nEnter Router IP:"; $hostname=<STDIN>; print "\nEnter password:"; $password=<STDIN>;
perl -pi.bak -e 's/(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})/$1-$2-$3-$4.$5.$6.000000/' /tmp/junk.txt
$params{$query_ref[1][1]}={};
$params{$key}{$1} = 1;
Leave a comment: