Uchiha Posted July 29, 2014 Report Posted July 29, 2014 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
mettastar Posted July 29, 2014 Report Posted July 29, 2014 http://alvinalexander.com/blog/post/perl/how-move-rename-file-perl
puli_keka Posted July 29, 2014 Report Posted July 29, 2014 Pearl endhi saami .. :3D_Smiles: :3D_Smiles: anyways LTT
Maximus Posted July 29, 2014 Report Posted July 29, 2014 PERL....adi nerchuko first... provide the script man.. Uchicha...tesion lo vesadu ani anukundammanna..asalu sync avatam ledu..title..
puli_keka Posted July 29, 2014 Report Posted July 29, 2014 #!/usr/bin/env perl using System; using System.IO; using System.Collections.Generic; namespace Scoorge { ....
Spartan Posted July 29, 2014 Report Posted July 29, 2014 Uchicha...tesion lo vesadu ani anukundammanna..asalu sync avatam ledu..title.. a name kuda sync avvatledu..
k2s Posted July 29, 2014 Report Posted July 29, 2014 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"; } [download] 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
Recommended Posts