We have a Perl, we don't have the newest version. That is why I have to make something to use shell from Perl. We don't have
That is why I am looking how to use shell in perl
I don't have that on my system either. Can't you ask your SysAdmin to install it? On my Ubuntu system (and you still haven't told us the OS you are using) it is in the package libfilesys-df-perl
hi,
Is it possible to call a perl function from a perl module from within a shell script. I have a similar requirement.
Thanks in advance,
Kavitha (1 Reply)
Hello friends ,
I need a help how to call the variable which has define in the shell script in the perl command line.
example of the shell scrip :
str="hell0"
i want print the value of this variable in the perl command line.
perl -e 'print $str'
but this is not working .
can... (2 Replies)
Hi,
Am new to scripting. :)
Am trying to figure out whether can i use bash scripting to parse an xml file.
Parsing is not just pulling out information according to the pattern but its more of a generic parsing. I should identify the xml hierarchy and pull out information accordingly. It's not a... (2 Replies)
Hi All,
I am using the following command to invoke the shell script from a perl command.
perl -i.bak -pe'BEGIN { $cmd = "/opt/coreservices/tomcat-5.5.9/bin/digest.sh -a sha"; }
s/(password=")(*)/
$1.`$cmd $2|cut -d: -f2|tr -d "\n"`
/e
' $CATALINA_HOME/conf/tomcat-users.xml
I need... (1 Reply)
Hi Guys,
I wish to execute some shell commands through PERL.
Here is what I desire to do
1) I wish to find list of directories in current working location
2) Then go in each directory and execute few commands like
a) rm -rf *.log (Shell command)
b) coreBuilder -f cb_tests.tcl (Some... (6 Replies)
perl script i am using for search and replace is not working as expected...
I am using it for in-place search/replace.
I am new to perl, can someone please help me solving the issue here.
########SCRIPT
#!/bin/sh
var="abc"
var2="def"
perl -pi -e 's/${var}/def/g' testfile
exit 0
... (0 Replies)
Hi ,
I have a ps command inside perl script :
ps -ef | egrep tail_file.pl | egrep -v egrep | awk '{print $2}' | egrep $pid
through shell it's working fine . The same coammnd when executed through PERL , it'd displaying all the results
oracle 10141 1 0 2010 ? ... (5 Replies)
Hi,
I would like to use a shell variable $amp in my perl command line.
for fa in $WORKSPACE/*.fa; do
amp=`grep ">.*" $fa | sed -e's#>\(.*\)#\1#g'`
ampsam="$WORKSPACE/$base/$base.$amp.sam"
sqheader=`grep "^@SQ.*SN:$amp.*" $sam`
printf "$sqheader\n" >> $ampsam
... (3 Replies)
Hi,
I have a shell script, In which i have variable "var1" and some perl command inside shell script.
export var1='coep -n rst-a2p-hinje.vci.all.com -c'
perl -pi -e 's/^/coep -n rst-a2p-hinje.vci.all.com -c /' command.txt
currently I am adding value of var1 in command.txt file by... (2 Replies)
Discussion started by: rakeshtomar82
2 Replies
LEARN ABOUT DEBIAN
padre::plugin::snippet
Padre::Plugin::Snippet(3pm) User Contributed Perl Documentation Padre::Plugin::Snippet(3pm)NAME
Padre::Plugin::Snippet - TextMate-like snippets for Padre
SYNOPSIS
cpan Padre::Plugin::Snippet
Then use it via Padre, The Perl IDE.
DESCRIPTION
Once you enable this Plugin under Padre, you'll get TextMate-style TAB triggered snippets for the following:
Perl
Moose
Mouse
MooseX::Declare
Example
For those who don't who this Text mate bloke is, just try to type in Padre something like:
for<tab>
if<tab>
ife<tab>
cfor<tab>
While editing the generated construct, you can type again <TAB>. Your cursor will be moved to the next point needing some attention in the
generated construct.
You can check the available keyword in the yaml files (perl.yml...) shipped with this module.
BUGS
Please report any bugs or feature requests to "bug-padre-plugin-snippet at rt.cpan.org", or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Padre-Plugin-Snippet <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Padre-Plugin-Snippet>.
I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Padre::Plugin::Snippet
You can also look for information at:
o RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Padre-Plugin-Snippet <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Padre-Plugin-Snippet>
o AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Padre-Plugin-Snippet <http://annocpan.org/dist/Padre-Plugin-Snippet>
o CPAN Ratings
http://cpanratings.perl.org/d/Padre-Plugin-Snippet <http://cpanratings.perl.org/d/Padre-Plugin-Snippet>
o Search CPAN
http://search.cpan.org/dist/Padre-Plugin-Snippet/ <http://search.cpan.org/dist/Padre-Plugin-Snippet/>
SEE ALSO
Padre
AUTHORS
Ahmad M. Zawawi <ahmad.zawawi@gmail.com>
CONTRIBUTORS
Adam Kennedy <adamk@cpan.org>
Kevin Dawson <bowtie@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ahmad M. Zawawi
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-03-27 Padre::Plugin::Snippet(3pm)