Jump to content

Pearl Scripting...urgent Help


Recommended Posts

Posted

Urgent ga help kavali ...chinna code undi....copy reports from one folder to another folder.. na technology kadu but ma danlo oka script kavali and adi pearl ....

 

Please pm cheyandi evriki ayina telsithe... code rasanu kani ekado tanthundi... please help

  • Replies 30
  • Created
  • Last Reply

Top Posters In This Topic

  • k2s

    8

  • Spartan

    7

  • Maximus

    4

  • puli_keka

    4

Top Posters In This Topic

Posted

Perl Scripting anukunta...

Posted

Pearl endhi saami .. :3D_Smiles:  :3D_Smiles:

 

anyways LTT

Posted

PERL....adi nerchuko first...

Posted

:3D_Smiles:

 

provide the script man..

Posted

#!/usr/bin/env perl

 

mari migitadi..

Posted

PERL....adi nerchuko first...

 

 

provide the script man..

Uchicha...tesion lo vesadu ani anukundammanna..asalu sync avatam ledu..title..tumblr_n3oawx1qFB1svwpr6o7_250.gif?14020

Posted

#!/usr/bin/env perl

 

using System;

using System.IO;

using System.Collections.Generic;

 

namespace Scoorge 

{

....

 

bemmiRTlaugh.gifbemmiRTlaugh.gif

Posted

Uchicha...tesion lo vesadu ani anukundammanna..asalu sync avatam ledu..title..tumblr_n3oawx1qFB1svwpr6o7_250.gif?14020

 

a name kuda sync avvatledu..  tumblr_n3oawx1qFB1svwpr6o7_250.gif?14020

Posted

mari migitadi..

use strict;
use warnings;

my @aRegexTests
=( ["a\n", '^a

which outputs

string=<a\n>
no modifier: regex=/^a$/
match => $ matches boundary, maybe more?
s modifier (single line mode): regex=/^a$/s
match => $ matches boundary, maybe more?
m modifier (multi line mode): regex=/^a$/m
match => $ matches boundary, maybe more?
string=<a\n>
no modifier: regex=/^a$\n/
match => $ matches only boundary, \n matches newline
s modifier (single line mode): regex=/^a$\n/s
match => $ matches only boundary, \n matches newline
m modifier (multi line mode): regex=/^a$\n/m
match => $ matches only boundary, \n matches newline
string=<a\n>
no modifier: regex=/^a$\z/
no match => $ matches only boundary, \z fails because of newline?
s modifier (single line mode): regex=/^a$\z/s
no match => $ matches only boundary, \z fails because of newline?
m modifier (multi line mode): regex=/^a$\z/m
no match => $ matches only boundary, \z fails because of newline?
string=<a\n\n>
no modifier: regex=/^a$/
no match => $ matches only boundary, \n matches first newline
s modifier (single line mode): regex=/^a$/s
no match => $ matches only boundary, \n matches first newline
m modifier (multi line mode): regex=/^a$/m
match => $ matches only boundary, \n matches first newline
string=<a\n\n>
no modifier: regex=/^a$\n/
no match => $ matches only boundary, \n matches first newline
s modifier (single line mode): regex=/^a$\n/s
no match => $ matches only boundary, \n matches first newline
m modifier (multi line mode): regex=/^a$\n/m
match => $ matches only boundary, \n matches first newline
, '$ matches boundary, maybe more?']
, ["a\n", '^a$\n'
, '$ matches only boundary, \n matches newline' ]
, ["a\n", '^a$\z'
, '$ matches only boundary, \z fails because of newline?' ]

, ["a\n\n", '^a

which outputs

string=<a\n> no modifier: regex=/^a$/ match => $ matches boundary, maybe more? s modifier (single line mode): regex=/^a$/s match => $ matches boundary, maybe more? m modifier (multi line mode): regex=/^a$/m match => $ matches boundary, maybe more? string=<a\n> no modifier: regex=/^a$\n/ match => $ matches only boundary, \n matches newline s modifier (single line mode): regex=/^a$\n/s match => $ matches only boundary, \n matches newline m modifier (multi line mode): regex=/^a$\n/m match => $ matches only boundary, \n matches newline string=<a\n> no modifier: regex=/^a$\z/ no match => $ matches only boundary, \z fails because of newline? s modifier (single line mode): regex=/^a$\z/s no match => $ matches only boundary, \z fails because of newline? m modifier (multi line mode): regex=/^a$\z/m no match => $ matches only boundary, \z fails because of newline? string=<a\n\n> no modifier: regex=/^a$/ no match => $ matches only boundary, \n matches first newline s modifier (single line mode): regex=/^a$/s no match => $ matches only boundary, \n matches first newline m modifier (multi line mode): regex=/^a$/m match => $ matches only boundary, \n matches first newline string=<a\n\n> no modifier: regex=/^a$\n/ no match => $ matches only boundary, \n matches first newline s modifier (single line mode): regex=/^a$\n/s no match => $ matches only boundary, \n matches first newline m modifier (multi line mode): regex=/^a$\n/m match => $ matches only boundary, \n matches first newline

, '$ matches only boundary, \n matches first newline' ]
, ["a\n\n", '^a$\n'
, '$ matches only boundary, \n matches first newline?' ]
);

foreach (@aRegexTests) {
my ($sString, $sRegex, $sComment) = @$_;
my $sMatch = ($sString =~ /$sRegex/) ? "match" : "no match";
my $sPrint = $sString;
$sPrint =~ s/\n/\\n/g;

print "string=<$sPrint>\n";
print " no modifier: "
. "regex=/$sRegex/\n $sMatch => $sComment\n";

$sMatch = ($sString =~ /$sRegex/s) ? "match" : "no match";
print " s modifier (single line mode): "
."regex=/$sRegex/s\n $sMatch => $sComment\n";

$sMatch = ($sString =~ /$sRegex/m) ? "match" : "no match";
print " m modifier (multi line mode): "
."regex=/$sRegex/m\n $sMatch => $sComment\n";
}

which outputs

string=<a\n> no modifier: regex=/^a$/ match => $ matches boundary, maybe more? s modifier (single line mode): regex=/^a$/s match => $ matches boundary, maybe more? m modifier (multi line mode): regex=/^a$/m match => $ matches boundary, maybe more? string=<a\n> no modifier: regex=/^a$\n/ match => $ matches only boundary, \n matches newline s modifier (single line mode): regex=/^a$\n/s match => $ matches only boundary, \n matches newline m modifier (multi line mode): regex=/^a$\n/m match => $ matches only boundary, \n matches newline string=<a\n> no modifier: regex=/^a$\z/ no match => $ matches only boundary, \z fails because of newline? s modifier (single line mode): regex=/^a$\z/s no match => $ matches only boundary, \z fails because of newline? m modifier (multi line mode): regex=/^a$\z/m no match => $ matches only boundary, \z fails because of newline? string=<a\n\n> no modifier: regex=/^a$/ no match => $ matches only boundary, \n matches first newline s modifier (single line mode): regex=/^a$/s no match => $ matches only boundary, \n matches first newline m modifier (multi line mode): regex=/^a$/m match => $ matches only boundary, \n matches first newline string=<a\n\n> no modifier: regex=/^a$\n/ no match => $ matches only boundary, \n matches first newline s modifier (single line mode): regex=/^a$\n/s no match => $ matches only boundary, \n matches first newline m modifier (multi line mode): regex=/^a$\n/m match => $ matches only boundary, \n matches first newline
×
×
  • Create New...