how to match an alphanumeric string like the following.
i have to do like the following.
if the input line is
the data is {clock_91b}
i have to replace that with
the string was ("clock_91b")
i tried like
$line =~ s/the data is\s+\{(+)\}/the string was \(\"$1\"\)/
which... (4 Replies)
I have a file I'm trying to sort such as
fred1
fred2
fred10
fred11
...
when I sort I get
fred1
fred10
fred11
fred2
...
using sort can any give me the syntax to sort this is dict order
e.g., (4 Replies)
Hi :)
I am writing a ksh
I have a string of general format
A12B3456CD78
the string is of variable length
the string always ends with numbers (here it is 78.. it can be any number of digits may be 789 or just 7)
before these ending numbers are alphabets (here it is CD can even be... (3 Replies)
I have a requirement where I need to check if
where r1v07l09ab is a software release.
I should always check for this to be true to continue the release deployment because an older release should not be deployed by mistake. I mean only the release greater than the current release should be... (3 Replies)
Hi ,
I have a requirement where one column have to be sorted (delimiter is pipe)
for eg:
My input filed is as below
1|FIAT|0010103|23011|01/01/2000|31/12/9999|1.15
2|232|613|1
2|234|743|1
2|234|793|1
2|234|893|1
1|FIAT|0010103|23012|01/01/2000|31/12/9999|1.15
2|230|006|0
2|230|106|0... (9 Replies)
Hi!
Could anyone so kindly help me a code to eliminate from a txt file, obtained by collecting and merge several web-page, every word (string) containing non alphabetical, numeric and punctuation character (i.e NON a-zA-Z0-9, underscore and punctuation mark)?
Thanks a lot for the help to... (5 Replies)
Hi All,
I have files with a column which has values and ranges, for example
colA colB
ERD1 3456
ERD2
ERD3 4456
I want to have the following output
colA colB colC
ERD1 3456 3456
ERD2 526887 526890
ERD3 4456 4456
Being a newbie to... (2 Replies)
Hi All,
I want sort following files in ascending order.
exp_installer_CC4160-file10.dmp
exp_installer_CC4160-file11.dmp
exp_installer_CC4160-file12.dmp
exp_installer_CC4160-file13.dmp... (3 Replies)
I have a lot of data that need to be sorted alphanumerically. I began using sort -du and it solved almost all my problems. However, when I encountered files with data like this it began to fail:
/vol/close_eng_ice_0888
/vol/open_eng_ice_0890
/vol/open_eng_ice_08923
/vol/open_eng_ice_0893... (6 Replies)
Discussion started by: newbie2010
6 Replies
LEARN ABOUT DEBIAN
module::depends
Module::Depends(3pm) User Contributed Perl Documentation Module::Depends(3pm)NAME
Module::Depends - identify the dependencies of a distribution
SYNOPSIS
use Module::Depends;
my $deps = Module::Depends->new->dist_dir( '.' )->find_modules;
print "Our dependencies:
", Dump $deps->requires;
DESCRIPTION
Module::Depends extracts module dependencies from an unpacked distribution tree.
Module::Depends only evaluates the META.yml shipped with a distribution. This won't be effective until all distributions ship META.yml
files, so we suggest you take your life in your hands and look at Module::Depends::Intrusive.
METHODS
new
simple constructor
dist_dir
Path where the distribution has been extracted to.
find_modules
scan the "dist_dir" to populate "libs", "requires", "configure_requires", "test_requires", and "build_requires"
libs
an array reference of lib lines
requires
A reference to a hash enumerating the prerequisite modules for this distribution.
configure_requires
A reference to a hash enumerating the prerequisite modules to configure this distribution.
build_requires
A reference to a hash enumerating the modules needed to build the distribution.
error
A reason, if any, for failing to get dependencies.
AUTHOR
Richard Clamp, based on code extracted from the Fotango build system originally by James Duncan and Arthur Bergman.
COPYRIGHT
Copyright 2010, Richard Clamp. Copyright 2004-2008, Fotango.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Module::Depends::Intrusive
perl v5.14.2 2012-06-10 Module::Depends(3pm)